aboutsummaryrefslogtreecommitdiffstats
path: root/community/dhcping/APKBUILD
blob: 39886d986eec306215c689c05f3c90298065ccec (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
29
30
31
32
33
34
35
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dhcping
pkgver=1.2
pkgrel=1
pkgdesc="dhcp daemon ping program"
url="http://www.mavetju.org/unix/general.php"
arch="all"
license="custom"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="http://www.mavetju.org/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="84ead27ba07f7ecc1e8cf6d95b40c98ee20a39ce54386249f403120beac70c45d765d5268b4968dbfbbb92790adcc1eb648c3a87071d215ad64bcd23aec818d3  dhcping-1.2.tar.gz"