wok-current annotate gettext/receipt @ rev 25177

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 02 13:44:10 2022 +0000 (2022-07-02)
parents 71360a13cd94
children e53dd413c6de
rev   line source
pankso@29 1 # SliTaz package receipt.
pankso@29 2
pankso@29 3 PACKAGE="gettext"
Hans-G?nter@24595 4 VERSION="0.21"
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@24595 16 BUILD_DEPENDS="acl-dev coreutils 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@24595 37 # 0.21 for textstyle.h to be found:
Hans-G?nter@24595 38 export CFLAGS="$CFLAGS -I../../libtextstyle/lib" &&
Hans-G?nter@24595 39
Hans-G?nter@23815 40 ./configure \
Hans-G?nter@23815 41 $CONFIGURE_ARGS \
Hans-G?nter@23815 42 $ARCH_ARGS &&
Hans-G?nter@23815 43 make &&
Hans-G?nter@23815 44 make install
pankso@29 45 }
pankso@29 46
pankso@29 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 48 genpkg_rules()
pankso@29 49 {
pankso@2745 50 mkdir -p $fs/usr/share
Hans-G?nter@23815 51
Hans-G?nter@24595 52 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24595 53 cp -a $install/usr/lib $fs/usr
Hans-G?nter@24595 54 cp -a $install/usr/include $fs/usr
Hans-G?nter@24595 55 cp -a $install/usr/share/aclocal $fs/usr/share
Hans-G?nter@24595 56 cp -a $install/usr/share/gettext $fs/usr/share
Hans-G?nter@24595 57 cp -a $install/usr/share/gettext-$VERSION $fs/usr/share
al@18526 58
al@18526 59 # Remove "gettext-base" and "gettext-tools" files.
Hans-G?nter@23815 60 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext
Hans-G?nter@23815 61 do
al@18526 62 rm $fs/usr/bin/$bin
Hans-G?nter@23815 63 done
Hans-G?nter@23815 64 rm $fs/usr/lib/libgettextlib*.so*
Hans-G?nter@23815 65 rm $fs/usr/lib/libgettextsrc*.so*
pankso@12147 66 }