wok-current annotate compiz-compizconfig-python/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 cdbaf97bfe46
children
rev   line source
pascal@11219 1 # SliTaz package receipt.
pascal@11219 2
pascal@11219 3 PACKAGE="compiz-compizconfig-python"
Hans-G?nter@22613 4 VERSION="0.8.14"
pascal@11219 5 CATEGORY="x-window"
Hans-G?nter@22613 6 SHORT_DESC="Compiz Configuration Python module."
pascal@11219 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@22613 9 WEB_SITE="https://github.com/compiz-reloaded"
Hans-G?nter@22613 10
psychomaniak@19217 11 SOURCE="${PACKAGE/compiz-/}"
psychomaniak@19217 12 TARBALL="$SOURCE-$VERSION.tar.xz"
psychomaniak@19217 13 WGET_URL="$WEB_SITE/$SOURCE/releases/download/v$VERSION/$TARBALL"
pascal@15000 14
Hans-G?nter@22613 15 DEPENDS="compiz-core compiz-libcompizconfig python"
Hans-G?nter@22613 16 BUILD_DEPENDS="compiz-core-dev compiz-libcompizconfig-dev file
Hans-G?nter@22613 17 libtool libxslt-dev protobuf-dev pygtk-dev python-cython
Hans-G?nter@22613 18 python-dev startup-notification-dev util-linux-uuid-dev
Hans-G?nter@22613 19 xcb-util-dev"
pascal@11219 20
pascal@24055 21 current_version()
pascal@24055 22 {
pascal@24055 23 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 25 }
pascal@24055 26
pascal@11219 27 # Rules to configure and make the package.
pascal@11219 28 compile_rules()
pascal@11219 29 {
Hans-G?nter@22613 30 ./configure --prefix=/usr &&
Hans-G?nter@22613 31 make &&
Hans-G?nter@22613 32 make install
pascal@11219 33 }
pascal@11219 34
pascal@11219 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11219 36 genpkg_rules()
pascal@11219 37 {
pascal@11219 38 mkdir -p $fs
Hans-G?nter@22613 39 cp -a $install/usr $fs
pascal@11219 40 }