PKGBUILDs/alarm/gst-imx/PKGBUILD
2014-06-07 12:45:28 +00:00

37 lines
1,007 B
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=gst-imx
_commit=12fba1863e8dcde89d3d4f299eaaa5d2644da77b
pkgver=0.9.6
pkgrel=2
pkgdesc="GStreamer plugins for i.MX platforms"
arch=('armv7h')
license=('LGPL')
url="https://github.com/Freescale/gstreamer-imx"
depends=('gst-plugins-base-libs' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb')
makedepends=('python2' 'linux-headers-imx6-fsl')
source=("https://github.com/Freescale/gstreamer-imx/archive/${_commit}.tar.gz")
md5sums=('d04c0cdbaa6c9ffcdb6d45dcbc32e62b')
LDFLAGS+=' -L/opt/fsl/lib'
CPPFLAGS+=' -I/opt/fsl/include'
build() {
cd gstreamer-imx-${_commit}
export PKG_CONFIG_PATH='/opt/fsl/lib/pkgconfig'
python2 waf configure --prefix=/usr \
--with-package-name="GStreamer plugins for i.MX platforms" \
--with-package-origin="https://github.com/archlinuxarm/PKGBUILDs/tree/master/alarm/gst-imx"
python2 waf build $MAKEFLAGS
}
package() {
cd gstreamer-imx-${_commit}
python2 waf install --destdir="$pkgdir"
}