2014-12-01 19:31:00 +01:00
|
|
|
# Template file for 'liboping'
|
|
|
|
pkgname=liboping
|
|
|
|
version=1.8.0
|
2015-04-20 14:38:31 +02:00
|
|
|
revision=3
|
2014-12-01 19:31:00 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="perl"
|
2015-04-20 14:19:21 +02:00
|
|
|
makedepends="ncurses-devel"
|
2014-12-01 19:31:00 +01:00
|
|
|
short_desc="C library to generate ICMP echo requests"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-12-01 19:31:00 +01:00
|
|
|
license="LGPL-2.1,GPL-2"
|
|
|
|
homepage="http://noping.cc/"
|
|
|
|
distfiles="http://noping.cc/files/liboping-${version}.tar.bz2"
|
|
|
|
checksum=1dcb9182c981b31d67522ae24e925563bed57cf950dc681580c4b0abb6a65bdb
|
|
|
|
|
2015-04-20 14:38:31 +02:00
|
|
|
post_configure() {
|
|
|
|
(
|
|
|
|
cd bindings/perl
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor PREFIX="/usr" TOP_BUILDDIR=".." \
|
|
|
|
TARGET_LIBDIR="/usr/lib" CC="$CC" LD="$CC" OPTIMIZE="$CFLAGS"
|
|
|
|
sed -i 's/-shared .*/-shared/' Makefile # wrangle LDDLFLAGS
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2014-12-01 19:31:00 +01:00
|
|
|
liboping-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man3/liboping.3
|
|
|
|
vmove usr/share/man/man3/ping_*.3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
liboping-perl_package() {
|
|
|
|
short_desc+=" - perl bindings"
|
|
|
|
depends="perl"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/man/man3/Net::Oping.3p
|
|
|
|
vmove usr/lib/perl5
|
|
|
|
}
|
|
|
|
}
|