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