46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'liboping'
|
|
pkgname=liboping
|
|
version=1.9.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="perl"
|
|
makedepends="ncurses-devel"
|
|
short_desc="C library to generate ICMP echo requests"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1,GPL-2"
|
|
homepage="http://noping.cc/"
|
|
distfiles="http://noping.cc/files/liboping-${version}.tar.bz2"
|
|
checksum=44bb1d88b56b88fda5533edb3aa005c69b3cd396f20453a157d7e31e536f3530
|
|
|
|
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
|
|
sed -i 's/-mtune=generic//' Makefile # fix arm build
|
|
)
|
|
}
|
|
|
|
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"
|
|
shlib_requires="libperl.so.5.22"
|
|
depends="perl"
|
|
pkg_install() {
|
|
vmove usr/share/man/man3/Net::Oping.3p
|
|
vmove usr/lib/perl5
|
|
}
|
|
}
|