aboutsummaryrefslogtreecommitdiffstats
path: root/community/liboping/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/liboping/APKBUILD')
-rw-r--r--community/liboping/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/liboping/APKBUILD b/community/liboping/APKBUILD
new file mode 100644
index 00000000000..2e898171f1b
--- /dev/null
+++ b/community/liboping/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Harry
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=liboping
+pkgver=1.10.0
+pkgrel=2
+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
+ fix-format-string.patch"
+
+prepare() {
+ default_prepare
+
+ update_config_sub
+ update_config_guess
+}
+
+build() {
+ CFLAGS="$CFLAGS -D_BSD_SOURCE" \
+ ./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
+4fe4b25e6213406f224086ed83fcd4dac7996766545e4a18c73def1035fc7729e2dc4a7d8abfe8cdf48484e1d9af59abfc7483aa1e5f59a0aa316d647490bad2 fix-format-string.patch
+"