wok annotate python-scapy/receipt @ rev 24618

updated gphoto2 (2.5.23 -> 2.5.28)
author Hans-G?nter Theisgen
date Mon Mar 07 09:50:09 2022 +0100 (2022-03-07)
parents 12fd9f72f43e
children 0262035dc1e7
rev   line source
pascal@21199 1 # SliTaz package receipt.
pascal@21199 2
pascal@21199 3 PACKAGE="python-scapy"
Hans-G?nter@23557 4 VERSION="2.4.3"
pascal@21199 5 CATEGORY="development"
Hans-G?nter@23557 6 SHORT_DESC="Interactive packet manipulation tool."
pascal@21199 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21199 8 LICENSE="GPL2"
pascal@21199 9 WEB_SITE="https://scapy.net/"
Hans-G?nter@23557 10
Hans-G?nter@23557 11 SOURCE="scapy"
Hans-G?nter@23557 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23557 13 WGET_URL="https://github.com/secdev/$SOURCE/archive/v$VERSION.tar.gz"
pascal@21199 14
pascal@21200 15 DEPENDS="python"
Hans-G?nter@23557 16 BUILD_DEPENDS="python python-setuptools"
pascal@21199 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@21199 24 # Rules to configure and make the package.
pascal@21199 25 compile_rules()
pascal@21199 26 {
pascal@21199 27 python setup.py build &&
pascal@21199 28 python setup.py install --root=$DESTDIR
pascal@21199 29 }
pascal@21199 30
pascal@21199 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21199 32 genpkg_rules()
pascal@21199 33 {
pascal@21199 34 mkdir -p $fs/usr
Hans-G?nter@23557 35
Hans-G?nter@23557 36 cp -a $install/usr/bin $fs
Hans-G?nter@23557 37 cp -a $install/usr/lib $fs
pascal@21199 38 }