wok view ghex/receipt @ rev 25112

updated patchelf (0.10 -> 0.14.5)
author Hans-G?nter Theisgen
date Sat Jun 25 15:14:46 2022 +0100 (2022-06-25)
parents 1f0f29295019
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ghex"
4 VERSION="3.41.1"
5 CATEGORY="x-window"
6 SHORT_DESC="A simple binary editor."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Apps/Ghex"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
14 SUGGESTED="ghex-lang"
15 DEPENDS="atk gtk+3 libgnome-keyring libgnomeprintui libgnomeui libxml2"
16 BUILD_DEPENDS="atk-dev gtk+3-dev intltool itstool
17 libbonobo-dev libbonoboui-dev libgnome-dev libgnome-keyring-dev
18 libgnomeprintui-dev libgnomeui-dev libxml2-dev meson ninja"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://gitlab.gnome.org/GNOME/ghex/-/tags 2>/dev/null | \
24 sed '/item-title/!d;/alpha/d;/beta/d;/rc/d;s|.*">||;s|<.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
32 # GHex2 cannot display help without Yelp. Removing help references.
33 # patch -Np1 -i $stuff/ghex2-remove-help.patch
34 patch --strip=0 --input=$stuff/patches/ghex-ui.xml-3.41.1
35 patch --strip=0 --input=$stuff/patches/preferences.c-3.41.1
37 # Do not create help files
38 sed -i -e "/subdir('help')/d" \
39 -e "/meson_post_install.py/d" \
40 meson.build
42 meson _build \
43 --prefix=/usr &&
44 ninja -C _build &&
45 ninja -C _build install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/bin
52 mkdir -p $fs/usr/lib
53 mkdir -p $fs/usr/share
55 cp -a $install/usr/bin/* $fs/usr/bin
56 # 3.41.1 not created
57 # cp -ar $install/usr/etc $fs/usr
58 cp -ar $install/usr/share/glib-2.0 $fs/usr/share
59 cp -a $install/usr/lib/*so* $fs/usr/lib
60 cp -ar $install/usr/share/applications $fs/usr/share
61 cp -ar $install/usr/share/metainfo $fs/usr/share
62 cp -ar $install/usr/share/icons $fs/usr/share
63 # moved to package ghex-lang
64 # cp -ar $install/usr/share/locale $fs/usr/share
65 }