diff options
Diffstat (limited to 'pcr/libav')
-rw-r--r-- | pcr/libav/PKGBUILD | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/pcr/libav/PKGBUILD b/pcr/libav/PKGBUILD index 05dd756c0..23f03db2d 100644 --- a/pcr/libav/PKGBUILD +++ b/pcr/libav/PKGBUILD @@ -1,11 +1,7 @@ -# $Id$ -# Maintainer : Ionut Biru <ibiru@archlinux.org> -# Contributor: Tom Newsom <Jeepster@gmx.co.uk> -# Contributor: Paul Mattal <paul@archlinux.org> # Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> static=false -pkgbase=libav +_pkgname=libav if [[ $static == true ]] || [[ $static == 1 ]] || [[ $static == enable ]]; then pkgname=libav-static pkgflag=-static @@ -13,7 +9,7 @@ if [[ $static == true ]] || [[ $static == 1 ]] || [[ $static == enable ]]; then elif [[ $static == false ]] || [[ $static == 0 ]] || [[ $static == disable ]]; then pkgname=libav fi -pkgver=9.3 +pkgver=9.7 pkgrel=1 pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux$staticdesc" arch=( @@ -21,10 +17,8 @@ arch=( x86_64 mips64el ) -url="http://$pkgbase.org/" -license=( - GPL -) +url=http://$_pkgname.org/ +license=GPL3 depends=( alsa-lib bzip2 @@ -37,7 +31,8 @@ depends=( libvorbis libvpx opencore-amr - openjpeg + #openjpeg + opus rtmpdump schroedinger sdl @@ -50,30 +45,29 @@ makedepends=( yasm libvdpau ) -source=( - http://$pkgbase.org/releases/$pkgbase-$pkgver.tar.gz -) -sha512sums=( - de3aaa571fed67d22ec2a0c53599af56684afa38445cf67fd09d26c23eeded5a184d045f472d414815d17783b421f937fd3d9565637e20f2050aaaf0081164fe -) +source=http://$_pkgname.org/releases/$_pkgname-$pkgver.tar.gz +sha512sums=6a446e8dceb9ee4f1fb7a7d68d254086990bbcab5b1014598b21c75e0add22dab47c30a95bc3129835cc40a8d32de9c61fb267b2fa2aa9353dbbfc4b716767e4 build() { - cd $pkgbase-$pkgver + cd $_pkgname-$pkgver [[ $static == false ]] && sttcv=disable || sttcv=enable - ./configure\ + setarch $CARCH ./configure\ --prefix=/opt/$pkgname\ --disable-debug\ --$sttcv-static\ --enable-avresample\ + --enable-avserver\ + --enable-dxva2\ --enable-gpl\ --enable-libfreetype\ --enable-libgsm\ --enable-libmp3lame\ --enable-libopencore_amrnb\ --enable-libopencore_amrwb\ - --enable-libopenjpeg\ + --disable-libopenjpeg\ + --enable-libopus\ --enable-libpulse\ --enable-librtmp\ --enable-libschroedinger\ @@ -87,14 +81,13 @@ build() { --enable-shared\ --enable-version3\ --enable-x11grab - setarch $CARCH make setarch $CARCH make tools/qt-faststart setarch $CARCH make doc/av{conv,play,server}.1 } package() { - cd $pkgbase-$pkgver + cd $_pkgname-$pkgver setarch $CARCH make DESTDIR=$pkgdir install install-man install -m755 -d $pkgdir/etc/ld.so.conf.d install -m755 -d $pkgdir/usr/bin @@ -103,10 +96,12 @@ package() { ln -s /opt/$pkgname/bin/avconv $pkgdir/usr/bin/avconv$pkgflag ln -s /opt/$pkgname/bin/avplay $pkgdir/usr/bin/avplay$pkgflag ln -s /opt/$pkgname/bin/avprobe $pkgdir/usr/bin/avprobe$pkgflag + ln -s /opt/$pkgname/bin/avserver $pkgdir/usr/bin/avserver$pkgflag ln -s /opt/$pkgname/bin/qt-faststart $pkgdir/usr/bin/qt-faststart-$pkgname ln -s /opt/$pkgname/share/man/man1/avconv.1 $pkgdir/usr/share/man/man1/avconv$pkgflag.1 ln -s /opt/$pkgname/share/man/man1/avplay.1 $pkgdir/usr/share/man/man1/avplay$pkgflag.1 ln -s /opt/$pkgname/share/man/man1/avprobe.1 $pkgdir/usr/share/man/man1/avprobe$pkgflag.1 + ln -s /opt/$pkgname/share/man/man1/avserver.1 $pkgdir/usr/share/man/man1/avserver$pkgflag.1 echo /opt/libav$pkgflag/lib > $pkgdir/etc/ld.so.conf.d/libav$pkgflag.conf } |