wok annotate gtkhash/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (7 weeks ago)
parents 5ea0ce1cecc0
children
rev   line source
Hans-G?nter@22819 1 # SliTaz package receipt.
Hans-G?nter@22819 2
Hans-G?nter@22819 3 PACKAGE="gtkhash"
Hans-G?nter@22819 4 VERSION="1.2"
Hans-G?nter@22819 5 CATEGORY="system-tools"
Hans-G?nter@22819 6 SHORT_DESC="GTK+ utility for computing message digests or checksums."
Hans-G?nter@22819 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@22819 8 LICENSE="GPLv2+"
Hans-G?nter@22819 9 WEB_SITE="https://github.com/tristanheaven/gtkhash"
Hans-G?nter@22819 10
Hans-G?nter@22819 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22819 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
Hans-G?nter@22819 13
Hans-G?nter@22819 14 DEPENDS="gtk+3 libgcrypt"
Hans-G?nter@22819 15 BUILD_DEPENDS="autoconf automake gtk+3-dev libgcrypt-dev libtool"
Hans-G?nter@22819 16
Hans-G?nter@22819 17 HOST_ARCH="i486 arm"
Hans-G?nter@22819 18
pascal@25599 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25599 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
Hans-G?nter@22819 26 # Rules to configure and make the package.
Hans-G?nter@22819 27 compile_rules()
Hans-G?nter@22819 28 {
Hans-G?nter@22819 29 ./configure \
Hans-G?nter@22819 30 --disable-blake2 \
Hans-G?nter@22819 31 $CONFIGURE_ARGS &&
Hans-G?nter@22819 32 make &&
Hans-G?nter@22819 33 make install
Hans-G?nter@22819 34 }
Hans-G?nter@22819 35
Hans-G?nter@22819 36 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@22819 37 genpkg_rules()
Hans-G?nter@22819 38 {
Hans-G?nter@22819 39 cook_copy_icons
Hans-G?nter@22819 40
Hans-G?nter@22819 41 mkdir -p $fs/usr/share/locale
Hans-G?nter@22819 42
Hans-G?nter@22819 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22819 44 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@22819 45
Hans-G?nter@22819 46 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22819 47 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22819 48
Hans-G?nter@22819 49 # Copy message files in wanted languages, if available
Hans-G?nter@22819 50 for locale in $LOCALE_PACK
Hans-G?nter@22819 51 do
Hans-G?nter@22819 52 [ -d $install/usr/share/locale/$locale ] || continue
Hans-G?nter@22819 53 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@22819 54 done
Hans-G?nter@22819 55 }