aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tuptime/APKBUILD
blob: c55a7c2df85f09c386a9a60ad7450c719ed1c78b (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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=tuptime
pkgver=3.4.2
pkgrel=2
pkgdesc="Report the historical and statistical real time of the system"
url="https://github.com/rfrail3/tuptime"
arch="noarch"
license="GPL-2.0-only"
depends="python3"
subpackages="$pkgname-doc $pkgname-openrc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/rfrail3/$pkgname/archive/$pkgver.tar.gz
	$pkgname.cron
	$pkgname.pre-install
	$pkgname.post-install"

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

package() {
	cd "$builddir"
	install -Dm775 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"
	install -Dm755 "$srcdir/$pkgname.cron" "$pkgdir"/etc/periodic/15min/$pkgname
	install -Dm644 "src/man/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
	install -Dm755 "src/openrc/$pkgname" "$pkgdir/etc/init.d/$pkgname"
}

sha512sums="c90e11a7d5dbee83325d4793316ccfa46b3f5ebe0914b6100757412b92446367070dca25b7fed3f4b7d8f08565dfc7c4e4e4027206b9dcfbb5b8942d36d94938  tuptime-3.4.2.tar.gz
d3a3f7820c2fbbc3a13412740934b5b62af462c35a9354a2f0d16b76500a406ea86dbec2cf368a24191df6c0221a8e6efff0dbf3e635af854cbe84eb6fe5630e  tuptime.cron
3ae52b4bfcac851dd9a649ddcc66358bc345bf83cee063223c33a19658a47106af471bdc5f1c5cb042a551432574ab1c2fb4e61dec6a15b2b06785764f66bcdf  tuptime.pre-install
6e6b8cef664cde72d6d157889ef377dcd8de91c8a4dcb5ddb909aa5b23f7e50fd7efe744ce66a00d53034d8d93045b2ccf0f96dc334e19d4ca5d8c312e673c87  tuptime.post-install"