wok-current view pycrypto/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | dda811c974d8 |
children | 3258d19b6f6c |
line source
1 # SliTaz package receipt.
3 PACKAGE="pycrypto"
4 VERSION="2.6.1"
5 CATEGORY="development"
6 SHORT_DESC="Cryptographic algorithms and protocols for python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://www.dlitz.net/software/pycrypto/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ftp.dlitz.net/pub/dlitz/crypto/$PACKAGE/$TARBALL"
14 DEPENDS="gmp python"
15 BUILD_DEPENDS="gmp-dev python-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 cp -a $install/usr $fs
35 }