[arch-commits] Commit in lib32-libvorbis/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sat Sep 21 11:46:17 UTC 2019
Date: Saturday, September 21, 2019 @ 11:46:16
Author: heftig
Revision: 511335
1.3.6-1.1
Modified:
lib32-libvorbis/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-21 10:12:35 UTC (rev 511334)
+++ PKGBUILD 2019-09-21 11:46:16 UTC (rev 511335)
@@ -1,41 +1,44 @@
-_pkgbasename=libvorbis
-pkgname=lib32-$_pkgbasename
+pkgname=lib32-libvorbis
pkgver=1.3.6
-pkgrel=1
-pkgdesc="Vorbis codec library (32-bit)"
+pkgrel=1.1
+pkgdesc='Vorbis codec library (32-bit)'
arch=('x86_64')
+url='https://www.xiph.org/ogg/vorbis/'
license=('BSD')
-url="https://www.xiph.org/ogg/vorbis/"
-depends=('lib32-libogg' $_pkgbasename)
+depends=('lib32-libogg' 'libvorbis')
provides=('libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so')
-source=(https://downloads.xiph.org/releases/vorbis/${_pkgbasename}-${pkgver}.tar.gz)
+source=("https://downloads.xiph.org/releases/vorbis/libvorbis-${pkgver}.tar.gz")
sha256sums=('6ed40e0241089a42c48604dc00e362beee00036af2d8b3f46338031c9e0351cb')
build() {
- cd ${srcdir}/${_pkgbasename}-${pkgver}
+ cd libvorbis-${pkgver}
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
- ./configure --prefix=/usr --disable-static --libdir=/usr/lib32
+ ./configure \
+ --prefix='/usr' \
+ --libdir='/usr/lib32' \
+ --disable-static
make
}
check() {
- cd ${srcdir}/${_pkgbasename}-${pkgver}
+ cd libvorbis-${pkgver}
make -j1 check
}
package() {
- cd ${srcdir}/${_pkgbasename}-${pkgver}
+ cd libvorbis-${pkgver}
+
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
install -d "$pkgdir/usr/share/licenses"
- ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s libvorbis "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list