aboutsummaryrefslogtreecommitdiffstats
path: root/community/apt-dater-host/APKBUILD
blob: c5b14356f121747de62620b145f83cc2c7b56e2f (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
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=apt-dater-host
pkgver=1.0.1
pkgrel=1
pkgdesc="Host helper application for apt-dater"
url="https://github.com/DE-IBH/apt-dater-host"
arch="noarch"
license="GPL-2.0-or-later"
checkdepends="bats checkbashisms"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/DE-IBH/$pkgname/archive/v$pkgver.tar.gz
	apt-dater-host-fix-bashisms.patch
	apk-improve-Machine-Type-reporting.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"/apk
	make check

	checkbashisms ./apt-dater-host
}

package() {
	cd "$builddir"/apk
	make install DESTDIR="$pkgdir"

	cd "$builddir"/man
	install -d -m0755 "$pkgdir"/usr/share/man/man1
	install -m0644 "$pkgname".1 "$pkgdir"/usr/share/man/man1
}
sha512sums="52d48ade6758cb1150be2f21ed4c9831b4254ccc749ae865321abea077737a49ff7aeefb4e643aa289d953d2847dcf83e94837fe510fa8f8bfe19cfda0fd9dbc  apt-dater-host-1.0.1.tar.gz
6f695e1b1785f88217b5a32c509b5cb3c7a3f70069b042ad9770a4c1e86c4477abab2763579130f65e0c880976eb9f292bed3b42dda0d25e801696db479e55e8  apt-dater-host-fix-bashisms.patch
f56c38f9f8af119517965da8fe65a8d55f1e489ae8b3402cb72c55a7b876a658ee6dd7042342922fac3e5e59e872555914ca8e2f8dd723e98566ce6b16c341ce  apk-improve-Machine-Type-reporting.patch"