wok-next view gettext/receipt @ rev 20406

Continue: json-c, json-glib, keyutils, libarchive, libassuan, libatasmart, libatomic_ops, libblockdev, libbytesize, libcroco, libdaemon, libesmtp, libffi, libgcrypt, libgpg-error, libgsf, libgudev, libgusb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 08 02:55:48 2017 +0200 (2017-12-08)
parents 7387df590f12
children 90a5eb560fd6
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 gettext"
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-base)
46 copy gettext gettext.sh envsubst ngettext
47 CAT="base-system|base tools"
48 DEPENDS="glibc-base"
49 ;;
50 gettext-tools)
51 copy msgcat msgfmt msgmerge xgettext \
52 libgettextlib*.so* libgettextsrc*.so*
53 CAT="libs|tools"
54 DEPENDS="acl attr glib libcroco libgomp liblzma libxml2 pcre zlib"
55 ;;
56 gettext)
57 copy @std @dev @rm
58 # Runtime depends, then dev-depends
59 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \
60 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4"
61 ;;
62 esac
63 }