wok view ptpython/receipt @ rev 24419

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 11:14:46 2022 +0000 (2022-02-11)
parents 5ea0ce1cecc0
children 59547e97954f
line source
1 # SliTaz package receipt.
3 PACKAGE="ptpython"
4 VERSION="3.0.1"
5 CATEGORY="development"
6 SHORT_DESC="Python REPL."
7 MAINTAINER="paul@slitaz.org"
8 WEB_SITE="https://github.com/prompt-toolkit/ptpython"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}/archive/$VERSION.tar.gz"
13 DEPENDS="python python-docopt python-jedi python-prompt-toolkit"
14 BUILD_DEPENDS="python-dev python-docopt python-jedi \
15 python-prompt-toolkit python-setuptools "
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 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 install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/usr $fs
33 }