wok-6.x view buildbot/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 514eef4b898e |
children | 68cf96abc146 |
line source
1 # SliTaz package receipt.
3 PACKAGE="buildbot"
4 VERSION="2.5.1"
5 CATEGORY="development"
6 TAGS="python buildtools"
7 SHORT_DESC="Tool to automate the compile and test cycle of source code."
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://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
15 DEPENDS="py3k twisted"
16 BUILD_DEPENDS="py3k py3k-dev python-setuptools"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/buildbot-v\(.*\).gitarchive.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python3 setup.py install --root=$DESTDIR
28 cook_pick_manpages docs/buildbot.1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
35 rm -r $fs/usr/share/man
36 }