wok-current view buildbot-slave/receipt @ rev 24425

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 17:50:36 2022 +0000 (2022-02-11)
parents c52d68d75000
children
line source
1 # SliTaz package receipt.
3 PACKAGE="buildbot-slave"
4 VERSION="0.8.14"
5 CATEGORY="development"
6 TAGS="python buildtools"
7 SHORT_DESC="Tool to automate the compile and test cycle of source code (slave part)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.buildbot.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://pypi.python.org/packages/source/b/$PACKAGE/$TARBALL"
15 DEPENDS="python twisted"
16 BUILD_DEPENDS="python python-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root=$DESTDIR
29 cook_pick_manpages docs/buildslave.1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }