diff options
-rw-r--r-- | main/sntpc/APKBUILD | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/main/sntpc/APKBUILD b/main/sntpc/APKBUILD index 4aefa864fd..8fd8fe7d6c 100644 --- a/main/sntpc/APKBUILD +++ b/main/sntpc/APKBUILD @@ -2,27 +2,26 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=sntpc pkgver=0.9 -pkgrel=5 +pkgrel=6 pkgdesc="Simple NTP client" -url="http://git.alpinelinux.org/cgit/sntpc" +url="http://git.alpinelinux.org/cgit/hosted/sntpc/" arch="all" license="GPL2" -depends= -source="http://dev.alpinelinux.org/archive/sntpc/sntpc-0.9.tar.xz +depends="" +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz sntpc.initd sntpc.confd " - -_builddir="$srcdir/$pkgname-$pkgver" +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" make || return 1 } package() { - cd "$_builddir" - install -m755 -D sntpc "$pkgdir"/usr/sbin/sntpc + cd "$builddir" + install -m755 -D sntpc "$pkgdir"/usr/sbin/sntpc || return 1 install -m755 -D "$srcdir"/sntpc.initd "$pkgdir"/etc/init.d/sntpc install -m644 -D "$srcdir"/sntpc.confd "$pkgdir"/etc/conf.d/sntpc } |