diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-12-30 00:50:40 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-12-30 00:50:52 +0000 |
commit | 7eca415081e6884bb11d846f7cd7482d251a561e (patch) | |
tree | adc809dcdd90d3079b12ce1c07b9ded2c9b5cf5c /testing | |
parent | 721328e3318d81a16461a0c3fb7ce74b74812fbc (diff) | |
download | aports-7eca415081e6884bb11d846f7cd7482d251a561e.tar.bz2 aports-7eca415081e6884bb11d846f7cd7482d251a561e.tar.xz |
testing/xva-img: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/xva-img/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/xva-img/APKBUILD b/testing/xva-img/APKBUILD new file mode 100644 index 0000000000..222f4c88ca --- /dev/null +++ b/testing/xva-img/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +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" |