wok-current view python-mechanize/receipt @ rev 24377
modified recipe for libboost-locale-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 09:47:43 2022 +0100 (2022-02-06) |
parents | 811dfc4df628 |
children | 076f424196b2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-mechanize"
4 VERSION="0.4.5"
5 CATEGORY="network"
6 SHORT_DESC="Stateful programmatic web browsing in Python."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/mechanize/"
11 SOURCE="mechanize"
12 TARBALL="${SOURCE}-${VERSION}.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/m/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev python-distribute python-setuptools"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root="$DESTDIR" --optimize=1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 }