# $Id: PKGBUILD 205819 2014-02-10 13:13:12Z heftig $ # Maintainer: Jan de Groot pkgname=gst-libav pkgver=1.2.3 pkgrel=1 pkgdesc="Gstreamer libav Plugin" arch=('i686' 'x86_64' 'mips64el') license=('GPL') url="http://gstreamer.freedesktop.org/" depends=('gst-plugins-base-libs' 'bzip2') makedepends=('yasm' 'python') options=(!emptydirs) provides=("gst-ffmpeg=$pkgver-$pkgrel") source=(${url}/src/$pkgname/$pkgname-$pkgver.tar.xz) sha256sums=('ebc7fbe10955f40df6ccc4bf689075e7e296205fc7ecd8ff383d43c5cdf5bcd6') build() { cd $pkgname-$pkgver ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-static --with-libav-extra-configure="--enable-runtime-cpudetect" \ --with-package-name="GStreamer libav Plugin (Arch Linux)" \ --with-package-origin="http://www.archlinux.org/" # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="${pkgdir}" install }