wok annotate tinypy/receipt @ rev 25548
aaphoto: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 17:05:06 2023 +0000 (20 months ago) |
parents | 934055de50e2 |
children |
rev | line source |
---|---|
pankso@4323 | 1 # SliTaz package receipt. |
pankso@4323 | 2 |
pankso@4323 | 3 PACKAGE="tinypy" |
pankso@4323 | 4 VERSION="1.1" |
pankso@4323 | 5 CATEGORY="development" |
pankso@4323 | 6 SHORT_DESC="A minimalist implementation of Python." |
pankso@4323 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15601 | 8 LICENSE="MIT" |
pankso@4323 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@4323 | 10 WEB_SITE="http://www.tinypy.org/" |
pascal@24976 | 11 WGET_URL="https://github.com/philhassey/tinypy/archive/refs/tags/$VERSION.tar.gz" |
jozee@4973 | 12 TAGS="python" |
pankso@4323 | 13 |
pascal@15601 | 14 DEPENDS="glibc-base" |
pascal@15601 | 15 BUILD_DEPENDS="python-dev" |
pascal@15601 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - https://github.com/philhassey/tinypy/tags 2>/dev/null | \ |
pascal@24462 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pankso@4323 | 24 # Rules to configure and make the package. |
pankso@4323 | 25 compile_rules() |
pankso@4323 | 26 { |
pankso@4323 | 27 cd $src |
pankso@4323 | 28 python setup.py linux |
pankso@4323 | 29 } |
pankso@4323 | 30 |
pankso@4323 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4323 | 32 genpkg_rules() |
pankso@4323 | 33 { |
pankso@4323 | 34 mkdir -p $fs/usr/bin |
pankso@4323 | 35 cp -a $src/build/tinypy $fs/usr/bin |
pankso@4323 | 36 } |