wok-6.x annotate paper-gtk-theme/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 | 4b55a51aefa5 |
children | 92be0e14703a |
rev | line source |
---|---|
al@19013 | 1 # SliTaz package receipt. |
al@19013 | 2 |
al@19013 | 3 PACKAGE="paper-gtk-theme" |
al@19013 | 4 VERSION="1.1" |
al@19013 | 5 COMMIT="02973b6" |
al@19126 | 6 CATEGORY="customization" |
al@19013 | 7 SHORT_DESC="Modern desktop theme suite" |
al@19013 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@19013 | 9 LICENSE="GPL3" |
al@19013 | 10 WEB_SITE="https://snwh.org/paper/" |
al@19013 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19013 | 12 WGET_URL="https://github.com/snwh/paper-gtk-theme/archive/$COMMIT.tar.gz" |
al@19114 | 13 HOST_ARCH="any" |
al@19013 | 14 |
al@19530 | 15 DEPENDS="gtk2-engine-murrine" |
al@19013 | 16 BUILD_DEPENDS="autoconf automake" |
al@19013 | 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 |
al@19013 | 24 # Rules to configure and make the package. |
al@19013 | 25 compile_rules() |
al@19013 | 26 { |
al@19013 | 27 chmod a+x autogen.sh |
al@19013 | 28 ./autogen.sh && |
al@19013 | 29 make && make install |
al@19013 | 30 } |
al@19013 | 31 |
al@19013 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19013 | 33 genpkg_rules() |
al@19013 | 34 { |
al@19013 | 35 cp -a $install/* $fs |
al@19013 | 36 } |