aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apt-dater-host/APKBUILD
blob: d19683ae9de3abbb779279d872b069b5f6fcd2aa (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: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=apt-dater-host
pkgver=1.0.0
_pkgver=c3d10e0
pkgrel=2
pkgdesc="host helper application for apt-dater"
url="https://github.com/DE-IBH/apt-dater-host"
arch="noarch"
license="GPL2+"
checkdepends="bats"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="apt-dater-host-$pkgver-g$_pkgver.tar.gz::https://github.com/DE-IBH/apt-dater-host/archive/$_pkgver.tar.gz
	0001-apk-try-to-use-virt-what.patch
	0001-apk-add-some-unit-tests-called-via-make-check.patch
	"
builddir="$srcdir/"

prepare() {
	cd "$builddir"/"$pkgname"-"$_pkgver"*/ || return 1
	patch -p1 -i "$srcdir"/0001-apk-try-to-use-virt-what.patch
	patch -p1 -i "$srcdir"/0001-apk-add-some-unit-tests-called-via-make-check.patch
	chmod a+x apk/test-apt-dater-host || return 1
}

check() {
	cd "$builddir"/"$pkgname"-"$_pkgver"*/apk || return 1
	make check || return 1
}

package() {
	cd "$builddir"/"$pkgname"-"$_pkgver"*/apk || return 1
	make install DESTDIR="$pkgdir" || return 1
	cd "$builddir"/"$pkgname"-"$_pkgver"*/man || return 1
	install -d -m0755 "$pkgdir"/usr/share/man/man1 || return 1
	install -m0644 "$pkgname".1 "$pkgdir"/usr/share/man/man1 || return 1
}

sha512sums="5398d94209ed0ef8faaf9086240e35d28047c81ac001dc9b55165c4d7505ca7a33eb68101c1357f40c6ef74d5c224bb8d75cf9f9d06676794e828b1f49b01c04  apt-dater-host-1.0.0-gc3d10e0.tar.gz
d93a7dc7e1e119bc948a4eb401a46d8ef28243b78d848194d1c86949da9f02ac01e556ff1c77fa0cf3b219403b5d55b48286cc8729d3e7cc1355b80f33fbabd9  0001-apk-try-to-use-virt-what.patch
12392a9bd36c3445c47382bb33be2f17609d5badfed51b8b25caa5262c8260f0048da6a3990f695caa0d70b8e908a1452caef9e15eb6211f2c696c974218ed0d  0001-apk-add-some-unit-tests-called-via-make-check.patch"