Commit 75657762 authored by Jakub Jirutka's avatar Jakub Jirutka Committed by Natanael Copa
Browse files

main/sntpc: fix project url and improve abuild

Fixes #5087.
parent 550a1735
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment