summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/libav/PKGBUILD32
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: