wok annotate pycrypto/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | dda811c974d8 |
children | 3258d19b6f6c |
rev | line source |
---|---|
pascal@2148 | 1 # SliTaz package receipt. |
pascal@2148 | 2 |
pascal@2148 | 3 PACKAGE="pycrypto" |
Hans-G?nter@23459 | 4 VERSION="2.6.1" |
pascal@2148 | 5 CATEGORY="development" |
pascal@2148 | 6 SHORT_DESC="Cryptographic algorithms and protocols for python." |
pascal@2148 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="PublicDomain" |
Hans-G?nter@23459 | 9 WEB_SITE="https://www.dlitz.net/software/pycrypto/" |
Hans-G?nter@23459 | 10 |
pascal@2148 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23459 | 12 WGET_URL="https://ftp.dlitz.net/pub/dlitz/crypto/$PACKAGE/$TARBALL" |
pascal@15379 | 13 |
Hans-G?nter@23459 | 14 DEPENDS="gmp python" |
Hans-G?nter@23459 | 15 BUILD_DEPENDS="gmp-dev python-dev" |
pascal@2148 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
pascal@2148 | 24 # Rules to configure and make the package. |
pascal@2148 | 25 compile_rules() |
pascal@2148 | 26 { |
slaxemulator@10167 | 27 python setup.py build && |
slaxemulator@10167 | 28 python setup.py install --root=$DESTDIR |
pascal@2148 | 29 } |
pascal@2148 | 30 |
pascal@2148 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2148 | 32 genpkg_rules() |
pascal@2148 | 33 { |
Hans-G?nter@23459 | 34 cp -a $install/usr $fs |
pascal@2148 | 35 } |