wok-current annotate caja/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 |
rev | line source |
---|---|
yuripourre@16982 | 1 # SliTaz package receipt. |
yuripourre@16982 | 2 |
yuripourre@16982 | 3 PACKAGE="caja" |
yuripourre@17805 | 4 VERSION="1.9.3" |
yuripourre@16982 | 5 CATEGORY="utilities" |
yuripourre@16982 | 6 LICENSE="GPL3" |
yuripourre@16982 | 7 SHORT_DESC="MATE file manager." |
yuripourre@16982 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@16982 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
yuripourre@16982 | 10 WEB_SITE="http://www.mate-desktop.org/" |
yuripourre@16982 | 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" |
yuripourre@16982 | 12 |
psychomaniak@18277 | 13 DEPENDS="gtk+ mate-desktop dconf exempi gvfs libunique" |
yuripourre@16982 | 14 BUILD_DEPENDS="wget dbus-dev dconf-dev cacerts autoconf automake libtool itstool \ |
yuripourre@16982 | 15 gtk+-dev gtk-doc mate-common-dev mate-desktop-dev mate-icon-theme libunique-dev \ |
yuripourre@17805 | 16 gvfs-dev desktop-file-utils gobject-introspection-dev util-linux-uuid-dev" |
yuripourre@16982 | 17 SUGGESTED="gvfs-smb" |
yuripourre@16982 | 18 |
psychomaniak@18282 | 19 TAGS="MATE file-manager" |
psychomaniak@18282 | 20 |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
yuripourre@16982 | 27 # Rules to configure and make the package. |
yuripourre@16982 | 28 compile_rules() |
yuripourre@16982 | 29 { |
al@18741 | 30 ./autogen.sh \ |
yuripourre@16984 | 31 --prefix=/usr \ |
yuripourre@16984 | 32 --libexecdir=/usr/lib/$PACKAGE \ |
yuripourre@16984 | 33 --enable-introspection \ |
yuripourre@16984 | 34 --enable-unique \ |
yuripourre@16984 | 35 --disable-static \ |
yuripourre@16984 | 36 --disable-update-mimedb \ |
yuripourre@16982 | 37 $CONFIGURE_ARGS && |
yuripourre@16982 | 38 make && |
yuripourre@16982 | 39 make DESTDIR=$DESTDIR install |
yuripourre@16982 | 40 } |
yuripourre@16982 | 41 |
yuripourre@16982 | 42 genpkg_rules() |
yuripourre@16982 | 43 { |
yuripourre@17805 | 44 mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/$PACKAGE |
yuripourre@16982 | 45 cp -a $install/usr/bin $fs/usr |
yuripourre@16982 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
yuripourre@17805 | 47 cp -a $install/usr/lib/$PACKAGE/* $fs/usr/lib/$PACKAGE |
yuripourre@17805 | 48 cp -a $install/usr/share/$PACKAGE/* $fs/usr/share/$PACKAGE |
yuripourre@16990 | 49 |
yuripourre@17805 | 50 mkdir -p $fs/usr/share/applications |
yuripourre@17805 | 51 cp -a $install/usr/share/applications/* $fs/usr/share/applications |
yuripourre@17805 | 52 |
yuripourre@17805 | 53 mkdir -p $fs/usr/share/dbus-1 |
yuripourre@17805 | 54 cp -a $install/usr/share/dbus-1/* $fs/usr/share/dbus-1 |
yuripourre@16990 | 55 |
yuripourre@16990 | 56 mkdir -p $fs/usr/share/pixmaps |
yuripourre@16984 | 57 cp -a $install/usr/share/icons/hicolor/32x32/apps/*.png \ |
yuripourre@16984 | 58 $fs/usr/share/pixmaps |
psychomaniak@18277 | 59 |
psychomaniak@18277 | 60 cp -a $install/usr/share/MateConf $fs/usr/share |
psychomaniak@18277 | 61 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
yuripourre@16982 | 62 } |