aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xva-img/APKBUILD
blob: 85bdcb9528b958e75ef030b2ce91f6e1500fde10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=xva-img
pkgver=1.3
pkgrel=1
pkgdesc="tool for converting XVA images"
url="https://github.com/eriklax/xva-img"
arch="all"
license="GPL"
depends=""
depends_dev="libressl-dev"
makedepends="$depends_dev cmake"
install=""
subpackages=""
source="xva-img-${pkgver}.tar.gz::https://github.com/eriklax/xva-img/archive/v${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"