wok-current annotate mate-desktop/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 d6ca18366f41
children 73f36875e5a7
rev   line source
yuripourre@16946 1 # SliTaz package receipt.
yuripourre@16946 2
yuripourre@16946 3 PACKAGE="mate-desktop"
yuripourre@17802 4 VERSION="1.9.3"
yuripourre@16946 5 CATEGORY="utilities"
yuripourre@16946 6 LICENSE="GPL3"
yuripourre@16946 7 SHORT_DESC="Common package for MATE Desktop applications."
yuripourre@16946 8 MAINTAINER="yuripourre@gmail.com"
yuripourre@16946 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
yuripourre@16946 10 WEB_SITE="http://www.mate-desktop.org/"
yuripourre@16946 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
yuripourre@18280 12 TAGS="MATE"
psychomaniak@18277 13 DEPENDS="gtk+ gdk-pixbuf libltdl"
yuripourre@16958 14 BUILD_DEPENDS="wget cacerts autoconf automake dconf-dev libtool itstool \
yuripourre@16960 15 mate-common-dev gtk-doc gtk+-dev gdk-pixbuf-dev yelp-tools harfbuzz-dev"
yuripourre@16946 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
yuripourre@16946 23 # Rules to configure and make the package.
yuripourre@16946 24 compile_rules()
yuripourre@16946 25 {
al@18734 26 ./autogen.sh \
yuripourre@16946 27 --prefix=/usr \
yuripourre@16946 28 $CONFIGURE_ARGS &&
yuripourre@16946 29 make &&
yuripourre@16946 30 make DESTDIR=$DESTDIR install
yuripourre@16946 31 }
yuripourre@16946 32
yuripourre@16958 33 # Rules to gen a SliTaz package suitable for Tazpkg.
yuripourre@16946 34 genpkg_rules()
yuripourre@16946 35 {
yuripourre@16958 36 mkdir -p $fs/usr/lib
yuripourre@16958 37 cp -a $install/usr/bin $fs/usr
yuripourre@16958 38 cp -a $install/usr/share $fs/usr
yuripourre@16958 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
yuripourre@16946 40 }