wok-current annotate python-mechanize/receipt @ rev 25098
created recipe for notecase-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 19 17:25:42 2022 +0100 (2022-06-19) |
parents | 1df6fa555414 |
children | 83ae4ccd6df5 |
rev | line source |
---|---|
pankso@13567 | 1 # SliTaz package receipt. |
pankso@13567 | 2 |
pankso@13567 | 3 PACKAGE="python-mechanize" |
Hans-G?nter@23508 | 4 VERSION="0.4.5" |
pankso@13567 | 5 CATEGORY="network" |
pankso@13567 | 6 SHORT_DESC="Stateful programmatic web browsing in Python." |
pankso@13567 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
Hans-G?nter@23508 | 9 WEB_SITE="https://pypi.org/project/mechanize/" |
Hans-G?nter@23508 | 10 |
Hans-G?nter@23508 | 11 SOURCE="mechanize" |
pankso@13567 | 12 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
Hans-G?nter@23508 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/m/$SOURCE/$TARBALL" |
pankso@13567 | 14 |
pankso@13567 | 15 DEPENDS="python" |
Hans-G?nter@23508 | 16 BUILD_DEPENDS="python python-dev python-distribute python-setuptools" |
Hans-G?nter@23508 | 17 |
Hans-G?nter@23508 | 18 HOST_ARCH="i486 arm" |
pankso@13567 | 19 |
pascal@24383 | 20 # What is the latest version available today? |
pascal@24288 | 21 current_version() |
pascal@24288 | 22 { |
pascal@24383 | 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 24 } |
pascal@24288 | 25 |
pankso@13567 | 26 # Rules to configure and make the package. |
pankso@13567 | 27 compile_rules() |
pankso@13567 | 28 { |
pankso@13567 | 29 python setup.py install --root="$DESTDIR" --optimize=1 |
pankso@13567 | 30 } |
pankso@13567 | 31 |
pankso@13567 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13567 | 33 genpkg_rules() |
pankso@13567 | 34 { |
pankso@13567 | 35 mkdir -p $fs/usr |
Hans-G?nter@23508 | 36 cp -a $install/usr/lib $fs/usr |
pankso@13567 | 37 } |