wok view mate-panel/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 (7 weeks ago)
parents a87ef96746f0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mate-panel"
4 VERSION="1.9.1"
5 CATEGORY="utilities"
6 LICENSE="GPL3"
7 SHORT_DESC="Panel where you can run applications and applets using MATE."
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="gtk+ dconf mate-menus caja libmateweather marco \
14 mate-desktop mate-session-manager"
15 BUILD_DEPENDS="wget dconf-dev autoconf automake libtool itstool \
16 gtk+-dev mate-common-dev mate-desktop-dev mate-menus-dev yelp-tools \
17 harfbuzz-dev gtk-doc gobject-introspection-dev dbus-glib-dev \
18 libcanberra-dev libwnck-dev librsvg-dev util-linux-uuid-dev \
19 libmateweather-dev libsoup-dev sqlite-dev libcroco-dev"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./autogen.sh \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --disable-introspection\
35 --disable-static \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share $fs/usr
46 cp -a $install/usr/libexec $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 rm -rf $install/usr/share/help
50 # Autostart
51 mkdir -p $fs/etc/xdg/autostart/
52 cp -a $install/usr/share/applications/* $fs/etc/xdg/autostart/
53 }