From 2a3dd654da4ebd7726c884fa370af69aa49ac783 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 16 Jan 2016 02:17:05 +0000 Subject: [PATCH] added alarm/libimxvpuapi --- alarm/libimxvpuapi/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 alarm/libimxvpuapi/PKGBUILD diff --git a/alarm/libimxvpuapi/PKGBUILD b/alarm/libimxvpuapi/PKGBUILD new file mode 100644 index 000000000..61ca5da27 --- /dev/null +++ b/alarm/libimxvpuapi/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Kevin Mihelich + +buildarch=4 + +pkgname=libimxvpuapi +pkgver=0.10.1 +pkgrel=1 +pkgdesc="i.MX VPU API Library" +arch=('armv7h') +license=('LGPL') +url="https://github.com/Freescale/libimxvpuapi" +depends=('imx-vpu') +makedepends=('python2' 'git') +source=("git+https://github.com/Freescale/libimxvpuapi.git#tag=${pkgver}") +md5sums=('SKIP') + +LDFLAGS+=' -L/opt/fsl/lib' +CPPFLAGS+=' -I/opt/fsl/include' + +build() { + cd $pkgname + + export PKG_CONFIG_PATH='/opt/fsl/lib/pkgconfig' + + python2 waf configure --prefix=/opt/fsl + + python2 waf build $MAKEFLAGS +} + +package() { + cd $pkgname + + python2 waf install --destdir="$pkgdir" +}