wok-current view mate-icon-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 40fab26c175d
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="mate-icon-theme"
4 VERSION="1.9.0"
5 CATEGORY="customization"
6 LICENSE="GPL3"
7 SHORT_DESC="MATE's default icon set."
8 MAINTAINER="yuripourre@gmail.com"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mate-desktop.org/"
11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
12 TAGS="MATE"
13 DEPENDS=""
14 BUILD_DEPENDS="wget cacerts autoconf automake mate-common-dev icon-naming-utils"
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 ./autogen.sh \
26 --prefix=/usr \
27 --enable-icon-mapping \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr $fs
37 }