From 7eca415081e6884bb11d846f7cd7482d251a561e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 30 Dec 2013 00:50:40 +0000 Subject: testing/xva-img: new aport --- testing/xva-img/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing/xva-img/APKBUILD (limited to 'testing') diff --git a/testing/xva-img/APKBUILD b/testing/xva-img/APKBUILD new file mode 100644 index 000000000..222f4c88c --- /dev/null +++ b/testing/xva-img/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: William Pitcock +# Maintainer: William Pitcock +pkgname=xva-img +pkgver=1.3 +pkgrel=0 +pkgdesc="tool for converting XVA images" +url="https://github.com/eriklax/xva-img" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev cmake" +install="" +subpackages="" +source="saveas-https://github.com/eriklax/xva-img/archive/v${pkgver}.tar.gz/xva-img-${pkgver}.tar.gz" + +_srcroot="${srcdir}/${pkgname}-${pkgver}" +_builddir="${srcdir}/build" +prepare() { + local i + mkdir "$_builddir" + cd "$_srcroot" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + cmake -DCMAKE_INSTALL_PREFIX=/usr -DPREFIX=/usr "$_srcroot" + make || return 1 +} + +package() { + cd "$_builddir" + install -d -m755 "$pkgdir"/usr/bin + install -c -m755 "$_builddir"/xva-img "$pkgdir"/usr/bin/xva-img +} + +md5sums="e061695781e85a67f1115e9837f4a76a xva-img-1.3.tar.gz" +sha256sums="305fbf37dcff1208cb7f556801c92f1cccbf9f68be71fcbcf19d8dda85350bd2 xva-img-1.3.tar.gz" +sha512sums="20c447cf1d0b84d2e285162dcff5870f0e183e6f7a58178fa02cbc9f6750f99db7b020d16e304ab8f341dc7e1b594cc973bfb5a2cf53e38f4a28bc6abddc0620 xva-img-1.3.tar.gz" -- cgit v1.2.3