wok annotate giws/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 913e7292869b
children ac8ca9758df1
rev   line source
pascal@13512 1 # SliTaz package receipt.
pascal@13512 2
pascal@13512 3 PACKAGE="giws"
Hans-G?nter@20968 4 VERSION="2.0.2"
pascal@13512 5 CATEGORY="development"
pascal@13512 6 SHORT_DESC="Generates a C++ wrapper on the Java object."
pascal@13512 7 MAINTAINER="pascal.bellard@slitaz.org"
Hans-G?nter@20968 8 LICENSE="CeCILL"
pascal@20672 9 WEB_SITE="https://github.com/opencollab/giws"
Hans-G?nter@20968 10
pascal@13512 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20968 12 WGET_URL="https://github.com/opencollab/$PACKAGE/archive/$VERSION.tar.gz"
pascal@13512 13
pascal@13512 14 DEPENDS="python"
pascal@13512 15 BUILD_DEPENDS="python libxml2-python"
pascal@13512 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@13512 23 # Rules to configure and make the package.
pascal@13512 24 compile_rules()
pascal@13512 25 {
pascal@13512 26 python setup.py build
pascal@13512 27 python setup.py install --root=$DESTDIR
pascal@13512 28 }
pascal@13512 29
pascal@13512 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13512 31 genpkg_rules()
pascal@13512 32 {
pascal@13512 33 cp -a $install/* $fs
pascal@13512 34 }