wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="gettext"
4 VERSION="0.19.8.1"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gettext/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev libcroco
15 libcroco-dev liblzma libxml2 libxml2-dev m4 ncurses pcre-dev"
16 BUILD_DEPENDS="acl-dev glib-dev libcroco-dev libxml2-dev"
17 SPLIT="gettext-base gettext-tools"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation. Glibc-locale are installed in cross chroot.
22 case "$ARCH" in
23 arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev"
24 ARCH_ARGS="--disable-acl" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 $CONFIGURE_ARGS \
39 $ARCH_ARGS &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib $fs/usr
51 cp -a $install/usr/include $fs/usr
52 cp -a $install/usr/share/aclocal $fs/usr/share
53 cp -a $install/usr/share/gettext $fs/usr/share
54 cp -a $install/usr/share/gettext-0.19.8 $fs/usr/share
56 # Remove "gettext-base" and "gettext-tools" files.
57 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext
58 do
59 rm $fs/usr/bin/$bin
60 done
61 rm $fs/usr/lib/libgettextlib*.so*
62 rm $fs/usr/lib/libgettextsrc*.so*
63 }