wok-current annotate pycrypto/receipt @ rev 25509

sgmixer: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 13:14:45 2023 +0000 (21 months ago)
parents 241fb98cab1c
children
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"
pascal@25051 9 WEB_SITE="https://www.pycrypto.org/"
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 }