wok-current annotate gnome-desktop/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 7bee98929640
children
rev   line source
pascal@11214 1 # SliTaz package receipt.
pascal@11214 2
pascal@11214 3 PACKAGE="gnome-desktop"
pascal@11214 4 VERSION="2.28.0"
pascal@11214 5 CATEGORY="x-window"
pascal@11214 6 SHORT_DESC="GNOME Desktop"
pascal@11214 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@11214 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20671 10 WEB_SITE="https://www.gnome.org"
pascal@11214 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@11214 12
pascal@13760 13 DEPENDS="GConf gtk+ startup-notification"
pascal@13760 14 BUILD_DEPENDS="python-dev libxml2-python GConf-dev gnome-doc-utils-dev \
pascal@23046 15 dbus-glib-dev intltool gtk+-dev"
pascal@13760 16
pascal@24111 17 current_version()
pascal@24111 18 {
pascal@24111 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 21 }
pascal@24111 22
pascal@11214 23 # Rules to configure and make the package.
pascal@11214 24 compile_rules()
pascal@11214 25 {
pascal@11214 26 cd $src
pascal@11214 27 ./configure \
pascal@11214 28 --prefix=/usr \
pascal@11214 29 --sysconfdir=/etc/gnome \
pascal@11214 30 --localstatedir=/var/lib \
pascal@11214 31 --enable-gtk-doc-html=no \
pascal@11214 32 --enable-gtk-doc=no \
pascal@11214 33 --disable-scrollkeeper \
pascal@11214 34 --disable-static \
pascal@11214 35 --with-gnome-distributor="SliTaz GNU/Linux" \
pascal@11214 36 $CONFIGURE_ARGS &&
pascal@11214 37 make && make DESTDIR=$DESTDIR install
pascal@11214 38 }
pascal@11214 39
pascal@11214 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11214 41 genpkg_rules()
pascal@11214 42 {
pascal@11214 43 mkdir -p $fs/usr/lib $fs/usr/share
pascal@13760 44 #cp -a $install/etc $fs
pascal@13760 45 cp -a $install/usr/bin $fs/usr
pascal@13760 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13760 47 #cp -a $install/usr/share/dbus-1 $fs/usr/share
pascal@11214 48 }
pascal@11214 49