aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xva-img/APKBUILD
blob: e836c8fa09a970142ffd36a81c22ac6ae89e29f6 (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
# Contributor: 
# Maintainer: 
pkgname=xva-img
pkgver=1.4
pkgrel=3
pkgdesc="tool for converting XVA images"
url="https://github.com/eriklax/xva-img"
arch="all"
license="GPL"
depends=""
depends_dev="openssl-dev"
makedepends="$depends_dev cmake"
install=""
subpackages=""
source="xva-img-${pkgver}.tar.gz::https://github.com/eriklax/xva-img/archive/${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
}

sha512sums="b6e619ae52beaa7bd8fecfc46e8c6d3420ef61667643566f4cc4e610953eb7214ba9e08d00c9e8b96aee21dd8cc3c72b4df2e3fff7ac39b74a26e5fed25f01bc  xva-img-1.4.tar.gz"