# $Id$ # Maintainer: Sean V Kelley pkgname=libyami-utils pkgver=1.3.1 pkgrel=4 pkgdesc="Intel VA-API Media Applications and Scripts for libyami" arch=('i686' 'x86_64') url="https://github.com/01org/libyami-utils" license=('Apache') depends=('libbsd' 'libyami' 'ffmpeg') options=('!emptydirs') changelog= source=($url/archive/$pkgver.tar.gz) sha256sums=('9264b45dceb62b96fb428814c7ef2b16994654c1f5d4807e993d496c16375b79') build() { export CXXFLAGS="-Wno-error" export LD_RUN_PATH='$ORIGIN/lib/' cd $pkgname-$pkgver sh autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --with-package-name="Libyami Media Utils (Arch Linux)" \ --with-package-origin="http://www.archlinux.org/" \ --enable-avformat # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make unset LD_RUN_PATH } check() { cd "$pkgname-$pkgver" make check } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir/" install }