# Maintainer: Natanael Copa pkgname=gst-libav1 pkgver=1.4.5 pkgrel=0 pkgdesc="Gstreamer libav Plugin" url="http://www.gstreamer.net" arch="x86 x86_64" 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 -D_XOPEN_SOURCE" ./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="f4922a46adbcbe7bd01331ff5dc7979d gst-libav-1.4.5.tar.xz" sha256sums="605c62624604f3bb5c870844cc1f2711779cc533b004c2aa1d8c0d58557afbbc gst-libav-1.4.5.tar.xz" sha512sums="a2f9250a51440358d205ef160119498d52cf4944fe810e736e4561f2cdbb8dabad6220d6e4da507f013c42bea69ce72acc373982642278de0a03605bbcd4f75f gst-libav-1.4.5.tar.xz"