wok-next view gettext/receipt @ rev 19561

Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 16 01:16:56 2016 +0200 (2016-12-16)
parents 7392cb9148ca
children 020a4a4be3b8
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/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 # Why deps on glib-dev ??? And glib build depends on gettext anyway...
16 DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4 \
17 ncurses gettext-tools"
18 #BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev"
19 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev"
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 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure $CONFIGURE_ARGS $ARCH_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/include $fs/usr
41 cp -a $install/usr/share/aclocal $fs/usr/share
42 cp -a $install/usr/share/gettext $fs/usr/share
44 # Remove "gettext-base" and "gettext-tools" files.
45 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do
46 rm $fs/usr/bin/$bin
47 done
48 rm $fs/usr/lib/libgettextlib*.so*
49 rm $fs/usr/lib/libgettextsrc*.so*
50 }