# Maintainer: Natanael Copa pkgname=gst-libav1 pkgver=1.5.2 pkgrel=1 pkgdesc="Gstreamer libav Plugin" url="http://www.gstreamer.net" arch="x86 x86_64" license="GPL" makedepends=" coreutils ffmpeg-dev>=2.7.1-r1 gstreamer1-dev gst-plugins-base1-dev liboil-dev orc-dev" source="http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$pkgver.tar.xz" _builddir="$srcdir"/gst-libav-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" export CFLAGS="$CFLAGS -fno-strict-aliasing -D_XOPEN_SOURCE" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-orc \ --disable-fatal-warnings \ --with-system-libav \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir"/usr/lib/ -name '*.a' -delete } md5sums="cca866c6f9a39faaa7e939e4d3992b48 gst-libav-1.5.2.tar.xz" sha256sums="1f08336ca0def537cffdc16977fcc437e75719a48a7548ab9914a9f6b7b8bea5 gst-libav-1.5.2.tar.xz" sha512sums="3c9503e706829b9c4cd56f24e3016801becd0d58d0bf3c9ef0425af8b4a98e70e67506ba2d894aaa7910d392b3bb835e0648a0acb2d3b2180539f9266bcff6fc gst-libav-1.5.2.tar.xz"