wok view python-constantly/receipt @ rev 24063
Fix sane-backends-dev
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 12 09:56:19 2021 +0000 (2021-06-12) |
parents | 2bfe25db26a5 |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-constantly"
4 SOURCE="constantly"
5 VERSION="15.1.0"
6 CATEGORY="development"
7 SHORT_DESC="Symbolic Constants in Python"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/twisted/constantly"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-setuptools"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py build &&
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs
34 cp -a $install/usr $fs
35 }