wok-current annotate perl-net-pcap/receipt @ rev 25319
updated speex and speex-dev (1.2.0 -> 1.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 07:04:55 2022 +0100 (2022-07-22) |
parents | be4f6d921ef0 |
children |
rev | line source |
---|---|
pascal@11215 | 1 # SliTaz package receipt. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="perl-net-pcap" |
Hans-G?nter@24244 | 4 VERSION="0.20" |
pascal@11215 | 5 CATEGORY="development" |
pascal@11215 | 6 SHORT_DESC="Net::Pcap module is a Perl extension." |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@24244 | 9 WEB_SITE="https://metacpan.org/pod/Net::Pcap" |
Hans-G?nter@24244 | 10 REPOLOGY="perl:net-pcap" |
Hans-G?nter@24244 | 11 SOURCE="Net-Pcap" |
Hans-G?nter@24244 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24244 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Net/$TARBALL" |
pascal@11215 | 14 DEPENDS="perl libpcap" |
pascal@11215 | 15 BUILD_DEPENDS="perl libpcap libpcap-dev" |
pascal@11215 | 16 |
pascal@24103 | 17 current_version() |
pascal@24103 | 18 { |
pascal@24103 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 21 } |
pascal@24103 | 22 |
pascal@11215 | 23 # Rules to configure and make the package. |
pascal@11215 | 24 compile_rules() |
pascal@11215 | 25 { |
pascal@23104 | 26 # libpcap 1.9.0 update |
Hans-G?nter@24246 | 27 # sed '/pcap_samp {/{NNNNNNNNNd};/pcap_rmtauth {/{NNNNd}' -i stubs.inc |
Hans-G?nter@24246 | 28 # sed 's|cpp_defines(@funcs)|&. "-DHAVE_PCAP_SETSAMPLING"|' -i Makefile.PL |
Hans-G?nter@24246 | 29 # no longer needed with libpcap-1.9.1 |
pascal@23104 | 30 |
Hans-G?nter@24244 | 31 perl Makefile.PL && |
Hans-G?nter@24244 | 32 make && |
Hans-G?nter@24244 | 33 make install DESTDIR=$DESTDIR |
pascal@11215 | 34 } |
pascal@11215 | 35 |
pascal@11215 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 37 genpkg_rules() |
pascal@11215 | 38 { |
Hans-G?nter@24244 | 39 cook_copy_folders lib |
pascal@11215 | 40 } |