wok-current annotate eom/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | d6ca18366f41 |
children | 73f36875e5a7 |
rev | line source |
---|---|
yuripourre@17868 | 1 # SliTaz package receipt. |
yuripourre@17868 | 2 |
yuripourre@17868 | 3 PACKAGE="eom" |
yuripourre@17868 | 4 VERSION="1.9.0" |
yuripourre@17868 | 5 CATEGORY="utilities" |
yuripourre@17868 | 6 LICENSE="GPL" |
yuripourre@17868 | 7 SHORT_DESC="MATE's default image viewer." |
yuripourre@17868 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@17868 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
yuripourre@17868 | 10 WEB_SITE="http://www.mate-desktop.org/" |
yuripourre@17868 | 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" |
yuripourre@17868 | 12 |
yuripourre@17868 | 13 DEPENDS="gtk+ dconf jpeg pygtk desktop-file-utils exempi lcms libexif librsvg" |
yuripourre@17868 | 14 BUILD_DEPENDS="wget autoconf automake libtool itstool mate-desktop-dev \ |
yuripourre@17868 | 15 mate-common-dev dconf-dev gtk-doc gtk+-dev yelp-tools mate-icon-theme \ |
yuripourre@17873 | 16 jpeg-dev gobject-introspection-dev shared-mime-info-dev pygobject-dev \ |
yuripourre@17873 | 17 pygtk-dev python-dev" |
yuripourre@17868 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
yuripourre@17868 | 25 # Rules to configure and make the package. |
yuripourre@17868 | 26 compile_rules() |
yuripourre@17868 | 27 { |
pascal@17874 | 28 sed -i 's|\$PYTHON_MAKEFILE|& 2> /dev/null|' configure* |
yuripourre@17868 | 29 ./autogen.sh \ |
yuripourre@17868 | 30 --prefix=/usr \ |
yuripourre@18618 | 31 --disable-introspection\ |
yuripourre@17868 | 32 $CONFIGURE_ARGS && |
yuripourre@17868 | 33 make && |
yuripourre@17868 | 34 make DESTDIR=$DESTDIR install |
yuripourre@17868 | 35 } |
yuripourre@17868 | 36 |
yuripourre@17868 | 37 genpkg_rules() |
yuripourre@17868 | 38 { |
yuripourre@17873 | 39 mkdir -p $fs/usr/lib/$PACKAGE/plugins $fs/usr/share/$PACKAGE |
yuripourre@17868 | 40 cp -a $install/usr/bin $fs/usr |
yuripourre@17873 | 41 cp -a $install/usr/lib/$PACKAGE/plugins/*.so* $fs/usr/lib |
yuripourre@17873 | 42 cp -a $install/usr/lib/$PACKAGE/plugins/*.eom-plugin $fs/usr/lib/$PACKAGE/plugins |
yuripourre@17868 | 43 cp -a $install/usr/share/$PACKAGE/* $fs/usr/share/$PACKAGE |
yuripourre@18628 | 44 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
yuripourre@18628 | 45 cp -a $install/usr/share/MateConf $fs/usr/share |
yuripourre@17868 | 46 } |