wok annotate gtkhash/receipt @ rev 25461
foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 09:44:06 2022 +0000 (2022-09-28) |
parents | fab080cdb380 |
children | 20ad21d5532c |
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@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
Hans-G?nter@22819 | 25 # Rules to configure and make the package. |
Hans-G?nter@22819 | 26 compile_rules() |
Hans-G?nter@22819 | 27 { |
Hans-G?nter@22819 | 28 ./configure \ |
Hans-G?nter@22819 | 29 --disable-blake2 \ |
Hans-G?nter@22819 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@22819 | 31 make && |
Hans-G?nter@22819 | 32 make install |
Hans-G?nter@22819 | 33 } |
Hans-G?nter@22819 | 34 |
Hans-G?nter@22819 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@22819 | 36 genpkg_rules() |
Hans-G?nter@22819 | 37 { |
Hans-G?nter@22819 | 38 cook_copy_icons |
Hans-G?nter@22819 | 39 |
Hans-G?nter@22819 | 40 mkdir -p $fs/usr/share/locale |
Hans-G?nter@22819 | 41 |
Hans-G?nter@22819 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22819 | 43 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22819 | 44 |
Hans-G?nter@22819 | 45 # Set list of wanted locales in LOCALE_PACK |
Hans-G?nter@22819 | 46 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
Hans-G?nter@22819 | 47 |
Hans-G?nter@22819 | 48 # Copy message files in wanted languages, if available |
Hans-G?nter@22819 | 49 for locale in $LOCALE_PACK |
Hans-G?nter@22819 | 50 do |
Hans-G?nter@22819 | 51 [ -d $install/usr/share/locale/$locale ] || continue |
Hans-G?nter@22819 | 52 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
Hans-G?nter@22819 | 53 done |
Hans-G?nter@22819 | 54 } |