wok view libgnomeui/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 6e8b1bcb30e2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libgnomeui"
4 VERSION="2.24.5"
5 CATEGORY="x-window"
6 SHORT_DESC="This is the gui parts of what was previously gnome-libs"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.gnome.org"
12 DEPENDS="libgnome libgnomecanvas libglade libbonoboui gnome-keyring"
13 BUILD_DEPENDS="libgnome-dev libgnomecanvas-dev gnome-keyring \
14 libgnome-keyring-dev libbonoboui-dev util-linux-uuid-dev libgcrypt-dev \
15 dbus-glib-dev esound-dev audiofile-dev libglade-dev intltool"
16 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 --libexecdir=/usr/lib/$PACKAGE \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/usr/share
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/lib/libglade $fs/usr/lib
41 cp -a $install/usr/share/pixmaps $fs/usr/share
42 find $fs/usr/lib -name *.*a -exec rm -f {} \;
43 }