wok-6.x annotate libpcap/receipt @ rev 24617

updated libgphoto2 and libgphoto2-dev (2.5.24 -> 2.5.29)
author Hans-G?nter Theisgen
date Mon Mar 07 09:33:31 2022 +0100 (2022-03-07)
parents 3601f83e0645
children f604496f040c
rev   line source
pankso@117 1 # SliTaz package receipt.
pankso@117 2
pankso@117 3 PACKAGE="libpcap"
Hans-G?nter@23093 4 VERSION="1.9.1"
pankso@200 5 CATEGORY="development"
Hans-G?nter@23093 6 SHORT_DESC="Library for tcpdump."
pascal@1065 7 MAINTAINER="sdaigl@lacitec.on.ca"
pascal@15323 8 LICENSE="BSD"
Hans-G?nter@23093 9 WEB_SITE="https://www.tcpdump.org/"
Hans-G?nter@23093 10
pankso@117 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@117 12 WGET_URL="http://www.tcpdump.org/release/$TARBALL";
pankso@117 13
pascal@15323 14 DEPENDS="libnl"
Hans-G?nter@23093 15 BUILD_DEPENDS="flex bison libnl-dev"
Hans-G?nter@23093 16
Hans-G?nter@23093 17 HOST_ARCH="i486 arm"
pascal@15323 18
pankso@16042 19 # Handle cross compilation
pankso@16042 20 case "$ARCH" in
pankso@16042 21 arm)
pankso@16042 22 BUILD_DEPENDS=""
pankso@16042 23 ARCH_ARGS="--with-pcap=linux"
pankso@16042 24 export ac_cv_linux_vers=2 ;;
pankso@16042 25 esac
pankso@16042 26
pascal@24447 27 # What is the latest version available today?
pascal@24447 28 current_version()
pascal@24447 29 {
pascal@24447 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 32 }
pascal@24447 33
pankso@117 34 # Rules to configure and make the package.
pankso@117 35 compile_rules()
pankso@117 36 {
Hans-G?nter@23093 37 ./configure \
Hans-G?nter@23093 38 $CONFIGURE_ARGS \
Hans-G?nter@23093 39 $ARCH_ARGS &&
Hans-G?nter@23093 40 make &&
Hans-G?nter@23093 41 make install
pankso@117 42 }
pankso@117 43
pankso@117 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@117 45 genpkg_rules()
pankso@117 46 {
slaxemulator@7170 47 mkdir -p $fs/usr/lib
Hans-G?nter@23093 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@117 49 }
pankso@117 50