wok view engrampa/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 6fab3264ba87
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="engrampa"
4 VERSION="1.9.0"
5 CATEGORY="utilities"
6 LICENSE="GPL3"
7 SHORT_DESC="MATE archive manipulator."
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"
13 DEPENDS="bzip2 caja desktop-file-utils gtk+ gzip libarchive tar"
14 BUILD_DEPENDS="wget dbus-dev dconf-dev cacerts autoconf automake libtool itstool \
15 gtk+-dev gtk-doc mate-common-dev mate-desktop-dev yelp-tools"
16 SUGGESTED="unrar unace p7zip yelp-tools zip"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh \
28 --prefix=/usr \
29 --libexecdir=/usr/lib/$PACKAGE \
30 --with-gtk=2.0 \
31 --disable-static \
32 --disable-packagekit \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/$PACKAGE
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share/$PACKAGE/* $fs/usr/share/$PACKAGE
45 mkdir -p $fs/usr/share/applications
46 cp -a $install/usr/share/applications/* $fs/usr/share/applications
48 mkdir -p $fs/usr/share/pixmaps
49 cp -a $install/usr/share/icons/hicolor/32x32/apps/*.png \
50 $fs/usr/share/pixmaps
51 }