wok annotate engrampa/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | 6fab3264ba87 |
children | 73f36875e5a7 |
rev | line source |
---|---|
yuripourre@16986 | 1 # SliTaz package receipt. |
yuripourre@16986 | 2 |
yuripourre@16986 | 3 PACKAGE="engrampa" |
yuripourre@16986 | 4 VERSION="1.9.0" |
yuripourre@16986 | 5 CATEGORY="utilities" |
yuripourre@16986 | 6 LICENSE="GPL3" |
yuripourre@16986 | 7 SHORT_DESC="MATE archive manipulator." |
yuripourre@16986 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@16986 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
yuripourre@16986 | 10 WEB_SITE="http://www.mate-desktop.org/" |
yuripourre@16986 | 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" |
yuripourre@16986 | 12 |
yuripourre@16986 | 13 DEPENDS="bzip2 caja desktop-file-utils gtk+ gzip libarchive tar" |
yuripourre@16986 | 14 BUILD_DEPENDS="wget dbus-dev dconf-dev cacerts autoconf automake libtool itstool \ |
yuripourre@16986 | 15 gtk+-dev gtk-doc mate-common-dev mate-desktop-dev yelp-tools" |
pascal@17482 | 16 SUGGESTED="unrar unace p7zip yelp-tools zip" |
yuripourre@16986 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
yuripourre@16986 | 24 # Rules to configure and make the package. |
yuripourre@16986 | 25 compile_rules() |
yuripourre@16986 | 26 { |
al@18741 | 27 ./autogen.sh \ |
yuripourre@16986 | 28 --prefix=/usr \ |
yuripourre@16986 | 29 --libexecdir=/usr/lib/$PACKAGE \ |
yuripourre@16986 | 30 --with-gtk=2.0 \ |
yuripourre@16986 | 31 --disable-static \ |
yuripourre@16986 | 32 --disable-packagekit \ |
yuripourre@16986 | 33 $CONFIGURE_ARGS && |
yuripourre@16986 | 34 make && |
yuripourre@16986 | 35 make DESTDIR=$DESTDIR install |
yuripourre@16986 | 36 } |
yuripourre@16986 | 37 |
yuripourre@16986 | 38 genpkg_rules() |
yuripourre@16986 | 39 { |
yuripourre@16990 | 40 mkdir -p $fs/usr/share/$PACKAGE |
yuripourre@16986 | 41 cp -a $install/usr/bin $fs/usr |
yuripourre@16986 | 42 cp -a $install/usr/lib $fs/usr |
yuripourre@16990 | 43 cp -a $install/usr/share/$PACKAGE/* $fs/usr/share/$PACKAGE |
al@18741 | 44 |
yuripourre@16990 | 45 mkdir -p $fs/usr/share/applications |
yuripourre@16990 | 46 cp -a $install/usr/share/applications/* $fs/usr/share/applications |
al@18741 | 47 |
yuripourre@16990 | 48 mkdir -p $fs/usr/share/pixmaps |
yuripourre@16986 | 49 cp -a $install/usr/share/icons/hicolor/32x32/apps/*.png \ |
yuripourre@16986 | 50 $fs/usr/share/pixmaps |
yuripourre@16986 | 51 } |