aboutsummaryrefslogtreecommitdiffstats
path: root/community/uptimed/APKBUILD
blob: c28afc2fa80c48636429026a28f8120c9d69b72b (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
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=uptimed
pkgver=0.4.0
pkgrel=1
pkgdesc='System uptime record daemon'
arch="all"
options="!check"  # No tests
url="http://podgorny.cz/uptimed/"
license="GPL-2.0-only"
subpackages="$pkgname-doc $pkgname-openrc"
makedepends="autoconf automake libtool"
source="$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz
	uptimed.init"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	autoreconf -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
	mv "$pkgdir"/etc/uptimed.conf-dist \
		"$pkgdir"/etc/uptimed.conf
	install -Dm755 "$srcdir"/uptimed.init \
		"$pkgdir"/etc/init.d/uptimed
}

sha512sums="918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900  uptimed-0.4.0.tar.gz
0884e9f5ace5a69b8eea4401c7f3b84f0a434f0ceb2b920919e83f318eb9e54182932de174cf1666ddddbab84c146781f3dd78571e80cc274963a72bf4f53a6b  uptimed.init"