wok view gettext/receipt @ rev 25039

Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 14:53:15 2022 +0000 (2022-05-26)
parents 71360a13cd94
children d79ed38ace18
line source
1 # SliTaz package receipt.
3 PACKAGE="gettext"
4 VERSION="0.21"
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 coreutils 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 # 0.21 for textstyle.h to be found:
38 export CFLAGS="$CFLAGS -I../../libtextstyle/lib" &&
40 ./configure \
41 $CONFIGURE_ARGS \
42 $ARCH_ARGS &&
43 make &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/usr/include $fs/usr
55 cp -a $install/usr/share/aclocal $fs/usr/share
56 cp -a $install/usr/share/gettext $fs/usr/share
57 cp -a $install/usr/share/gettext-$VERSION $fs/usr/share
59 # Remove "gettext-base" and "gettext-tools" files.
60 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext
61 do
62 rm $fs/usr/bin/$bin
63 done
64 rm $fs/usr/lib/libgettextlib*.so*
65 rm $fs/usr/lib/libgettextsrc*.so*
66 }