aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tuptime/APKBUILD
blob: f0bef6d739c8a0f77527329dbde1fc3f3a6164c5 (plain) (blame)
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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=tuptime
pkgver=3.4.2
pkgrel=4
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"
install="$pkgname.pre-install $pkgname-openrc.post-install"
subpackages="$pkgname-doc $pkgname-openrc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/rfrail3/$pkgname/archive/$pkgver.tar.gz
	$pkgname.cron"

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"