wok-6.x annotate python-constantly/receipt @ rev 24929
updated mtools (4.0.23 -> 4.0.39)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 15:59:41 2022 +0100 (2022-04-13) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@22105 | 1 # SliTaz package receipt. |
pascal@22105 | 2 |
pascal@22105 | 3 PACKAGE="python-constantly" |
pascal@22105 | 4 SOURCE="constantly" |
pascal@22105 | 5 VERSION="15.1.0" |
pascal@22105 | 6 CATEGORY="development" |
pascal@22105 | 7 SHORT_DESC="Symbolic Constants in Python" |
pascal@22105 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22105 | 9 LICENSE="MIT" |
pascal@22105 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@22105 | 11 WEB_SITE="https://github.com/twisted/constantly" |
pascal@22105 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@22105 | 13 |
pascal@22105 | 14 DEPENDS="python" |
pascal@22110 | 15 BUILD_DEPENDS="python-setuptools" |
pascal@22105 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24299 | 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@22105 | 23 # Rules to configure and make the package. |
pascal@22105 | 24 compile_rules() |
pascal@22105 | 25 { |
pascal@22105 | 26 python setup.py build && |
pascal@22105 | 27 python setup.py install --root=$DESTDIR |
pascal@22105 | 28 } |
pascal@22105 | 29 |
pascal@22105 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22105 | 31 genpkg_rules() |
pascal@22105 | 32 { |
pascal@22105 | 33 mkdir -p $fs |
pascal@22105 | 34 cp -a $install/usr $fs |
pascal@22105 | 35 } |