aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/xva-img/APKBUILD44
1 files changed, 44 insertions, 0 deletions
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 <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"