wok-current view python-pycryptopp/receipt @ rev 24975
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 16:22:04 2022 +0000 (2022-05-02) |
parents | 104a2a2e5484 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pycryptopp"
4 VERSION="0.6.0"
5 CATEGORY="development"
6 SHORT_DESC="Wrapper around a few algorithms from Crypto++ and python-Ed25519."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="pycryptopp"
10 TARBALL="$SOURCE-$VERSION.1206569328141510525648634803928199668821045408958.tar.gz"
11 WEB_SITE="https://pypi.python.org/pypi/pycryptopp"
12 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-dev python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
21 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.[0-9]*.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|uname -m|echo i486|' src-cryptopp/GNUmakefile
28 python setup.py build
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 }