wok-current annotate gettext/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | dd2e01a112ac |
children | a1df341077ba |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
al@19845 | 4 VERSION="0.19.8.1" |
pankso@204 | 5 CATEGORY="development" |
pankso@29 | 6 SHORT_DESC="Utilities for the GNU Translation Project." |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
al@14903 | 8 LICENSE="GPL3" |
al@19845 | 9 WEB_SITE="https://www.gnu.org/software/gettext/" |
pankso@29 | 10 |
al@19845 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19845 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19845 | 13 |
Hans-G?nter@23815 | 14 DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev libcroco |
mojo@23843 | 15 libcroco-dev liblzma libxml2 libxml2-dev m4 ncurses pcre-dev" |
Hans-G?nter@23815 | 16 BUILD_DEPENDS="acl-dev glib-dev libcroco-dev libxml2-dev" |
al@19845 | 17 SPLIT="gettext-base gettext-tools" |
pankso@12147 | 18 |
Hans-G?nter@23815 | 19 HOST_ARCH="i486 arm" |
Hans-G?nter@23815 | 20 |
pankso@12830 | 21 # Handle cross compilation. Glibc-locale are installed in cross chroot. |
pankso@12830 | 22 case "$ARCH" in |
pascal@19098 | 23 arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev" |
pascal@19098 | 24 ARCH_ARGS="--disable-acl" ;; |
pankso@12830 | 25 esac |
gokhlayeh@8184 | 26 |
pascal@24336 | 27 # What is the latest version available today? |
pascal@24336 | 28 current_version() |
pascal@24336 | 29 { |
pascal@24336 | 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 32 } |
pascal@24336 | 33 |
pankso@29 | 34 # Rules to configure and make the package. |
pankso@29 | 35 compile_rules() |
pankso@29 | 36 { |
Hans-G?nter@23815 | 37 ./configure \ |
Hans-G?nter@23815 | 38 $CONFIGURE_ARGS \ |
Hans-G?nter@23815 | 39 $ARCH_ARGS && |
Hans-G?nter@23815 | 40 make && |
Hans-G?nter@23815 | 41 make install |
pankso@29 | 42 } |
pankso@29 | 43 |
pankso@29 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 45 genpkg_rules() |
pankso@29 | 46 { |
pankso@2745 | 47 mkdir -p $fs/usr/share |
Hans-G?nter@23815 | 48 |
Hans-G?nter@23815 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23815 | 50 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23815 | 51 cp -a $install/usr/include $fs/usr |
Hans-G?nter@23815 | 52 cp -a $install/usr/share/aclocal $fs/usr/share |
Hans-G?nter@23815 | 53 cp -a $install/usr/share/gettext $fs/usr/share |
Hans-G?nter@23816 | 54 cp -a $install/usr/share/gettext-0.19.8 $fs/usr/share |
al@18526 | 55 |
al@18526 | 56 # Remove "gettext-base" and "gettext-tools" files. |
Hans-G?nter@23815 | 57 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext |
Hans-G?nter@23815 | 58 do |
al@18526 | 59 rm $fs/usr/bin/$bin |
Hans-G?nter@23815 | 60 done |
Hans-G?nter@23815 | 61 rm $fs/usr/lib/libgettextlib*.so* |
Hans-G?nter@23815 | 62 rm $fs/usr/lib/libgettextsrc*.so* |
pankso@12147 | 63 } |