blob: c01788af2407b42eb4031a9886efabd3e8accac4 (
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
|
# $Id: PKGBUILD 113828 2014-07-01 06:34:20Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=liboping
pkgver=1.6.2
pkgrel=2
pkgdesc='C library to generate ICMP echo requests, better known as "ping packets"'
url='http://verplant.org/liboping/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('libcap')
makedepends=('ncurses')
optdepends=('perl: perl bindings'
'ncurses: noping CLI tool')
source=("${url}files/${pkgname}-${pkgver}.tar.gz")
sha256sums=('1b3203e5f13b35a6f7ff163c26e4f42284a625fa30d3bdbfdafb6cccb1f33803')
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 --with-perl-bindings='INSTALLDIRS=vendor'
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|