aboutsummaryrefslogtreecommitdiffstats
path: root/community/liboping/APKBUILD
blob: 16a931e8e1dd47f9b4ac4877b4cf236aab084bdc (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
# Contributor: Harry
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboping
pkgver=1.10.0
pkgrel=0
pkgdesc="A C library to generate ICMP echo requests"
url="http://verplant.org/liboping/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://verplant.org/liboping/files/liboping-$pkgver.tar.bz2"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr \
		--libdir=/usr/lib \
		--without-perl-bindings \
		--disable-static
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="f1e9984cf0c1df89b29f7bc657c19a5439019db7643680744d8f353664b6a53070581f40b51e72f896c7df88799c6868257f6308e1a9d84b4d2a0666491214d8  liboping-1.10.0.tar.bz2"