aboutsummaryrefslogtreecommitdiffstats
path: root/testing/liboping/APKBUILD
blob: 27ff74023f1481ca8d3782d4d41bfb8b27e5b3c6 (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
# Contributor: Harry
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboping
pkgver=1.6.2
pkgrel=0
pkgdesc="A C library to generate ICMP echo requests"
url="http://verplant.org/liboping/"
arch="all"
license="LGPL2+"
depends=""
makedepends="ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://verplant.org/liboping/files/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir/$pkgname-$pkgver"
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="64a6f31310093d2517cfe7f05aa011e0  liboping-1.6.2.tar.bz2"
sha256sums="5f4ab4b127b5a8a79ab771002604bff0e2903622393e5602f336cad258bb73cf  liboping-1.6.2.tar.bz2"
sha512sums="6e09cff67f0d87382a0c63b7b515de5bae0db97996b450aba5432a2bcd05d0b5c7481323c23d839c8937dd132bc9cfc5bb1a4ca50a3746653f4893fccd27357f  liboping-1.6.2.tar.bz2"