aboutsummaryrefslogtreecommitdiffstats
path: root/main/sntpc/APKBUILD
blob: 2dc1bb7d26ef046d7199f290a79125b468fe62f0 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sntpc
pkgver=0.9
pkgrel=5
pkgdesc="Simple NTP client"
url="http://git.alpinelinux.org/cgit/sntpc"
arch="all"
license="GPL2"
depends=
source="http://git.alpinelinux.org/cgit/sntpc.git/snapshot/sntpc-$pkgver.tar.bz2
	sntpc.initd
	sntpc.confd
	"

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

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -m755 -D sntpc "$pkgdir"/usr/sbin/sntpc
	install -m755 -D "$srcdir"/sntpc.initd "$pkgdir"/etc/init.d/sntpc
	install -m644 -D "$srcdir"/sntpc.confd "$pkgdir"/etc/conf.d/sntpc
}

md5sums="5cdeb038c6cb0b86b76b9f64e2ccd85c  sntpc-0.9.tar.bz2
65cade4d0ffe76ef8744a49a4a7c2078  sntpc.initd
4ea1ceee01f94080be86188bde8f9adc  sntpc.confd"
sha256sums="ccb511ed7c21bc60c10d63112e9da3f1647c7c1847dc5785062dc19bdeed815e  sntpc-0.9.tar.bz2
a09ab9f1dc4f6e222cf2585cead4ce168089002164bc0bf1e67cbdb544fa1f8d  sntpc.initd
edb737bb2c4980ee2f6c10485c5e7f04e8930beb41d6f04da80179ebbd2f3fd6  sntpc.confd"
sha512sums="1aefd31b75089ac651c116c37aa429b40cf6b08d41ca37c6e11e90b34ffe6a39491b18de09760873a4ab3267ae0d2f0f2139313f2c8ca275fdf6515c89978633  sntpc-0.9.tar.bz2
72a803a7393424c996b176d0e4df078b2af26b84650793cf3b7b187416878f467aca3a0c96a9cadead065d169ac80a29ae0ceb46ec4b3b26d6d552e30f3562e3  sntpc.initd
2fcb7d45f4c6588fd5281c02161a4aebb7e0a9d259a2ac3aa6c3187617dc7029f05fbebbb227feace61cc706e37ca0acb18b0019a67c674c444498fd289a9975  sntpc.confd"