wok-6.x annotate 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
rev   line source
pankso@3281 1 # SliTaz package receipt.
pankso@3281 2
pankso@3281 3 PACKAGE="buildbot"
Hans-G?nter@22566 4 VERSION="2.5.1"
pankso@3281 5 CATEGORY="development"
Hans-G?nter@22566 6 TAGS="python buildtools"
Hans-G?nter@22566 7 SHORT_DESC="Tool to automate the compile and test cycle of source code."
pankso@3281 8 MAINTAINER="pankso@slitaz.org"
pascal@15579 9 LICENSE="GPL2"
Hans-G?nter@22566 10 WEB_SITE="https://www.buildbot.net/"
Hans-G?nter@22566 11
pankso@3281 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22566 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
pascal@15579 14
Hans-G?nter@22566 15 DEPENDS="py3k twisted"
Hans-G?nter@22566 16 BUILD_DEPENDS="py3k py3k-dev python-setuptools"
pankso@3281 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/buildbot-v\(.*\).gitarchive.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pankso@3281 24 # Rules to configure and make the package.
pankso@3281 25 compile_rules()
pankso@3281 26 {
Hans-G?nter@22566 27 python3 setup.py install --root=$DESTDIR
al@19288 28 cook_pick_manpages docs/buildbot.1
pankso@3281 29 }
pankso@3281 30
pankso@3281 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3281 32 genpkg_rules()
pankso@3281 33 {
Hans-G?nter@22566 34 cp -a $install/* $fs
Hans-G?nter@22566 35 rm -r $fs/usr/share/man
pankso@3281 36 }