summaryrefslogtreecommitdiff
path: root/community/liboping/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/liboping/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/liboping/PKGBUILD')
-rw-r--r--community/liboping/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/liboping/PKGBUILD b/community/liboping/PKGBUILD
new file mode 100644
index 000000000..f4c9acae2
--- /dev/null
+++ b/community/liboping/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+
+pkgname=liboping
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='C library to generate ICMP echo requests, better known as "ping packets"'
+url='http://verplant.org/liboping/'
+arch=('i686' 'x86_64')
+license=('GPL')
+options=('!libtool')
+depends=('libcap')
+makedepends=('ncurses')
+optdepends=('perl: perl bindings'
+ 'ncurses: noping CLI tool')
+source=("${url}files/$pkgname-$pkgver.tar.gz")
+sha1sums=('8203096fa932d157069be7aeda3a1025132e129f')
+
+install=install
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # setting capabilities/setuid is futile in fakeroot
+ # (we do that in the install script)
+ sed -i 's/ install-exec-hook//g' src/Makefile.in
+
+ ./configure --prefix=/usr --enable-static=no
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}