# Maintainer: Natanael Copa pkgname=gst-libav1 pkgver=1.0.8 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 --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="7c2e8db039efa1880a61a6982a6909d7 gst-libav-1.0.8.tar.xz" sha256sums="e6e538290e585c993609337761d894dd1b6b53ef625798b2a511d5314579995f gst-libav-1.0.8.tar.xz" sha512sums="282b40320f7b17ba60a660a743b89b98368eaec781cc3455226df2e5db5f9ec76b5a8e2fb1c16c05fd231cc1d891b9686a950ebc8c09d352675e82edf6e357ae gst-libav-1.0.8.tar.xz"