wok annotate python-prettytable/receipt @ rev 25237
updated python-simplejson (3.17.0 -> 3.17.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 17:45:54 2022 +0100 (2022-07-13) |
parents | d106e282154d |
children |
rev | line source |
---|---|
pankso@13568 | 1 # SliTaz package receipt. |
pankso@13568 | 2 |
pankso@13568 | 3 PACKAGE="python-prettytable" |
Hans-G?nter@23531 | 4 VERSION="0.7.2" |
pankso@13568 | 5 CATEGORY="system-tools" |
pankso@13568 | 6 SHORT_DESC="Python library for easily displaying tabular data in ASCII." |
pankso@13568 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
Hans-G?nter@23531 | 9 WEB_SITE="https://pypi.python.org/pypi/PrettyTable" |
Hans-G?nter@23531 | 10 |
Hans-G?nter@23531 | 11 SOURCE="prettytable" |
pankso@13568 | 12 TARBALL="${SOURCE}-${VERSION}.tar.bz2" |
Hans-G?nter@23531 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pankso@13568 | 14 |
pankso@13568 | 15 DEPENDS="python" |
pascal@21582 | 16 BUILD_DEPENDS="python-dev python-distribute python-setuptools" |
pankso@13568 | 17 |
pascal@24391 | 18 # What is the latest version available today? |
pascal@24391 | 19 current_version() |
pascal@24391 | 20 { |
pascal@24391 | 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 23 } |
pascal@24391 | 24 |
pankso@13568 | 25 # Rules to configure and make the package. |
pankso@13568 | 26 compile_rules() |
pankso@13568 | 27 { |
pankso@13568 | 28 python setup.py install --root="$DESTDIR" |
pankso@13568 | 29 } |
pankso@13568 | 30 |
pankso@13568 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13568 | 32 genpkg_rules() |
pankso@13568 | 33 { |
pankso@13568 | 34 mkdir -p $fs/usr |
Hans-G?nter@23531 | 35 cp -a $install/usr/lib $fs/usr |
pankso@13568 | 36 } |