wok-next view gettext/receipt @ rev 19980
Up libva (1.8.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:39:08 2017 +0300 (2017-10-18) |
parents | 18c4d15a72df |
children | c3d04e304a7a |
line source
1 # SliTaz package receipt v2.
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/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev"
16 BUILD_DEPENDS_arm="attr-dev ncurses-dev libxml2-tools libxml2-dev"
17 SPLIT="gettext-base gettext-tools"
19 # Handle cross compilation. Glibc-locale are installed in cross chroot.
20 case "$ARCH" in
21 arm) ARCH_ARGS="--disable-acl" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS $ARCH_ARGS &&
28 make && make install
30 # stripped gettext.sh
31 rm $install/usr/bin/gettext.sh
32 install -m755 $stuff/gettext.sh $install/usr/bin
33 }
35 # Just to be sure when cross compiling, gettext is part of base system.
36 testsuite()
37 {
38 readelf -h $install/usr/bin/gettext
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 gettext)
46 copy @std @dev
47 # Remove "gettext-base" and "gettext-tools" files.
48 for i in gettext gettext.sh envsubst ngettext \
49 msgcat msgfmt msgmerge xgettext \
50 libgettextlib*.so* libgettextsrc*.so*; do
51 find $fs -name "$i" -delete
52 done
53 # Runtime depends, then dev-depends
54 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
55 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
56 ;;
57 gettext-base)
58 copy gettext gettext.sh envsubst ngettext
59 CAT="base-system|base tools"
60 DEPENDS="glibc-base"
61 ;;
62 gettext-tools)
63 copy msgcat msgfmt msgmerge xgettext \
64 libgettextlib*.so* libgettextsrc*.so*
65 CAT="libs|tools"
66 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 pcre zlib"
67 ;;
68 esac
69 }