wok view python-scapy/receipt @ rev 25306

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