wok-current view gtk-theme-blackbird/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 40fab26c175d
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk-theme-blackbird"
4 VERSION="0.4"
5 CATEGORY="customization"
6 SHORT_DESC="Blackbird is GTK+2 and GTK+3 theme from the Shimmer Project"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2 CC-BY-SA-3"
9 WEB_SITE="http://shimmerproject.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/shimmerproject/Blackbird/archive/v$VERSION.tar.gz"
12 HOST_ARCH="any"
14 DEPENDS="gtk2-engine-murrine"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package
23 compile_rules()
24 {
25 patch -p1 -i $stuff/define-sizes.patch
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 T='/usr/share/themes/Blackbird'
32 mkdir -p $fs/$T
33 cp -a \
34 $src/gtk-2.0 \
35 $src/gtk-3.0 \
36 $src/xfce-notify-4.0 \
37 $fs/$T
38 }