wok-6.x view ghex/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 a78610b2eb47
children 1f0f29295019
line source
1 # SliTaz package receipt.
3 PACKAGE="ghex"
4 VERSION="2.24.0"
5 CATEGORY="x-window"
6 SHORT_DESC="GHex is a simple binary editor."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://directory.fsf.org/wiki/Ghex"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://ftp.acc.umu.se/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+ libgnomeui libgnomeprintui libgnome-keyring"
14 BUILD_DEPENDS="gtk+-dev gnome-doc-utils-dev libgnomeui-dev libbonoboui-dev \
15 libgnome-dev libbonobo-dev libbonoboui-dev libgnome-keyring-dev \
16 libgnomeprintui-dev intltool"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
30 # GHex2 cannot display help without Yelp. Removing help references.
31 patch -Np1 -i $stuff/ghex2-remove-help.patch
33 ./configure \
34 --disable-schemas-install \
35 --disable-scrollkeeper \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$install install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin \
45 $fs/usr/lib \
46 $fs/usr/share
48 cp -a $install/usr/bin/* $fs/usr/bin
49 cp -ar $install/usr/etc $fs/usr
50 cp -a $install/usr/lib/*so* $fs/usr/lib
51 cp -ar $install/usr/share/applications $fs/usr/share
52 cp -ar $install/usr/share/gnome-2.0 $fs/usr/share
53 cp -ar $install/usr/share/icons $fs/usr/share
54 cp -ar $install/usr/share/locale $fs/usr/share
55 }