wok annotate xprintidle/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 | d231f44f9f0a |
children | 0262035dc1e7 |
rev | line source |
---|---|
Hans-G?nter@22820 | 1 # SliTaz package receipt. |
Hans-G?nter@22820 | 2 |
Hans-G?nter@22820 | 3 PACKAGE="xprintidle" |
Hans-G?nter@22820 | 4 VERSION="2.1" |
Hans-G?nter@22820 | 5 CATEGORY="misc" |
Hans-G?nter@22820 | 6 SHORT_DESC="Print user's Xserver idle time in milliseconds." |
Hans-G?nter@22820 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@22820 | 8 LICENSE="GPLv2+" |
Hans-G?nter@22820 | 9 WEB_SITE="https://github.com/lucianposton/xprintidle" |
Hans-G?nter@22820 | 10 |
Hans-G?nter@22820 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22820 | 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
Hans-G?nter@22820 | 13 |
Hans-G?nter@22820 | 14 BUILD_DEPENDS="xorg-libXScrnSaver-dev" |
Hans-G?nter@22820 | 15 |
Hans-G?nter@22820 | 16 HOST_ARCH="i486 arm" |
Hans-G?nter@22820 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
Hans-G?nter@22820 | 24 # Rules to configure and make the package. |
Hans-G?nter@22820 | 25 compile_rules() |
Hans-G?nter@22820 | 26 { |
Hans-G?nter@22820 | 27 ./configure \ |
Hans-G?nter@22820 | 28 $CONFIGURE_ARGS && |
Hans-G?nter@22820 | 29 make && |
Hans-G?nter@22820 | 30 make install |
Hans-G?nter@22820 | 31 } |
Hans-G?nter@22820 | 32 |
Hans-G?nter@22820 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@22820 | 34 genpkg_rules() |
Hans-G?nter@22820 | 35 { |
Hans-G?nter@22820 | 36 mkdir -p $fs/usr |
Hans-G?nter@22820 | 37 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22820 | 38 } |