wok annotate pyrit/receipt @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (2022-04-10)
parents fe803e849a79
children 0262035dc1e7
rev   line source
pascal@22504 1 # SliTaz package receipt.
pascal@22504 2
pascal@22504 3 PACKAGE="pyrit"
pascal@22504 4 VERSION="0.5.0"
pascal@22504 5 CATEGORY="network"
pascal@22504 6 SHORT_DESC="The famous WPA precomputed cracker"
pascal@22504 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@22504 8 LICENSE="GPL3"
pascal@22504 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@22504 10 WEB_SITE="https://github.com/JPaulMora/Pyrit"
pascal@22504 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@22504 12
pascal@22504 13 DEPENDS="python libcrypto libpcap"
pascal@22504 14 BUILD_DEPENDS="python-setuptools python-dev openssl-dev libpcap-dev"
pascal@22504 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24055 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
pascal@22504 22 # Rules to configure and make the package.
pascal@22504 23 compile_rules()
pascal@22504 24 {
pascal@22504 25 python setup.py build &&
pascal@22504 26 python setup.py install --root=$DESTDIR
pascal@22504 27 }
pascal@22504 28
pascal@22504 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@22504 30 genpkg_rules()
pascal@22504 31 {
pascal@22504 32 mkdir -p $install/usr/share/doc
pascal@22504 33 cp $src/README.md $install/usr/share/doc
pascal@22504 34 cp -a $install/usr $fs
pascal@22504 35 }