contrib/p5-net-rawip/Pkgfile
2020-11-22 13:01:22 +02:00

30 lines
696 B
Plaintext

# Description: Manipulate raw IP packets with interface to libpcap
# URL: https://metacpan.org/pod/Net::RawIP
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
# Depends on: libpcap
name=p5-net-rawip
version=0.25
release=1
source=(https://cpan.metacpan.org/authors/id/S/SA/SAPER/Net-RawIP-$version.tar.gz)
build() {
cd Net-RawIP-$version
perl Makefile.PL
# remove default -pipe flag
sed -i -e '/CCFLAGS = /s/ -pipe / /' Makefile
make OPTIMIZE="$CFLAGS"
make DESTDIR=$PKG install
find $PKG -name perllocal.pod \
-o -name "*.bs" \
-o -name .packlist \
-o -name autosplit.ix \
| xargs rm -f
find $PKG -depth -type d -empty -delete
}