diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-07-27 02:11:47 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-07-27 02:11:47 -0300 |
commit | bfa2eb7a80c004edb7a795c79a2915a1fc65bc07 (patch) | |
tree | 37bc271b5964ef3db5152c8f4c6c0430821f9027 | |
parent | 96cb95a5b71b95748d84fe871669d52c57e1fe3c (diff) | |
download | abslibre-bfa2eb7a80c004edb7a795c79a2915a1fc65bc07.tar.gz abslibre-bfa2eb7a80c004edb7a795c79a2915a1fc65bc07.tar.bz2 abslibre-bfa2eb7a80c004edb7a795c79a2915a1fc65bc07.zip |
libav: fixing pkg
-rw-r--r-- | pcr/libav/PKGBUILD | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/pcr/libav/PKGBUILD b/pcr/libav/PKGBUILD index fdbab6a89..c0fb9e062 100644 --- a/pcr/libav/PKGBUILD +++ b/pcr/libav/PKGBUILD @@ -1,20 +1,15 @@ # Maintainer: Márcio Silva <coadde@lavabit.com> -_static=false # will be droped - -_pkgname=libav -pkgname=$_pkgname -[[ $_static == true ]] && pkgname=$_pkgname-static +pkgname=libav pkgver=9.8 -pkgrel=2 +pkgrel=3 pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux" -[[ $_static == true ]] && pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux, with static library" arch=( mips64el x86_64 i686 ) -url=http://$_pkgname.org/ +url=http://$pkgname.org/ license=GPL3 depends=( alsa-lib @@ -42,11 +37,11 @@ makedepends=( yasm libvdpau ) -source=http://$_pkgname.org/releases/$_pkgname-$pkgver.tar.gz +source=http://$pkgname.org/releases/$pkgname-$pkgver.tar.gz sha512sums=ef7c164fb29d365a236ead927e6355ca9191203dce86f0d0d8251f275ed5be4ab5e3f56a0c51384d7b9e83c3c3ef7ebdee95c9a7ac7b6520eaf25973a2bd20ae build() { - cd $_pkgname-$pkgver + cd $pkgname-$pkgver if [[ $CARCH == x86_64 ]]; then _asm='--disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vis --disable-altivec\ --enable-amd3dnow --enable-mmx --enable-mmxext --enable-amd3dnow --enable-amd3dnowext --enable-sse --enable-sse2 --enable-sse3\ @@ -62,9 +57,10 @@ build() { ./configure\ $_asm $_stf\ --prefix=/usr\ - --incdir=/usr/include/$pkgname\ - --libdir=/usr/lib/$pkgname\ - --shlibdir=/usr/lib/$pkgname\ + --bindir=/opt/$pkgname/bin\ + --incdir=/opt/$pkgname/include\ + --libdir=/opt/$pkgname/lib\ + --shlibdir=/opt/$pkgname/lib\ --disable-avserver\ --disable-debug\ --enable-avresample\ @@ -98,13 +94,15 @@ build() { } package() { - cd $_pkgname-$pkgver + cd $pkgname-$pkgver make DESTDIR=$pkgdir install install-man - install -vDm755 tools/qt-faststart $pkgdir/usr/bin/qt-faststart-$_pkgname + install -vD tools/qt-faststart $pkgdir/usr/bin/qt-faststart-$pkgname - install -vd $pkgdir/etc/ld.so.conf.d - echo /usr/lib/$pkgname > $pkgdir/etc/ld.so.conf.d/$pkgname.conf + for _bin in conv play probe; do + echo -e "#!/usr/bin/env bash\nLD_LIBRARY_PATH=/opt/$pkgname/lib /opt/$pkgname/bin/av$_bin \$@" > $pkgdir/usr/bin/av$_bin + done + chmod -v +x $pkgdir/usr/bin/* } # vim:set ts=2 sw=2 et: |