aboutsummaryrefslogtreecommitdiffstats
path: root/testing/liboping/APKBUILD
blob: 438b967e71bb5fc8071922a32d9073b482f86f4d (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
# Contributor: Harry
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboping
pkgver=1.6.1
pkgrel=0
pkgdesc="A Ping Lib"
url="http://verplant.org/liboping/"
arch="all"
license=GPL
depends=
# make install needs setcap provided by libcap
makedepends="ncurses-dev libcap"
source="http://verplant.org/liboping/files/$pkgname-$pkgver.tar.bz2"
subpackages="$pkgname-dev $pkgname-doc"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--libdir=/usr/lib \
		--without-perl-bindings \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="748554a18e1771913f4f402ee9f957c9  liboping-1.6.1.tar.bz2"