# Maintainer: Natanael Copa pkgname=gst-libav1 pkgver=1.0.9 pkgrel=0 pkgdesc="Gstreamer libav Plugin" url="http://www.gstreamer.net" arch="all" license="GPL" makedepends=" coreutils 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" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-orc \ --with-libav-extra-configure="--enable-pic --disable-mmx --disable-mmx2" \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir"/usr/lib/ \( -name '*.la' -o -name '*.a' \) -delete } md5sums="8414f8d4c4a239a74a3d5eadf3d14875 gst-libav-1.0.9.tar.xz" sha256sums="759641c0597c24191322f40945b363b75df299a539ff4086650be6193028189a gst-libav-1.0.9.tar.xz" sha512sums="a22aa69a9f0cb6e56aac774321eae061325b066dba4361266959d8a2bcaf05a5215889c40d1a12619977f44fa25e67195c0861d98058df499c5adc84098bfc79 gst-libav-1.0.9.tar.xz"