wok-next view gettext/receipt @ rev 19143
Up miro (6.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 19 12:10:21 2016 +0200 (2016-05-19) |
parents | ef147b8cd509 |
children | c963361d3d54 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gettext"
4 VERSION="0.19.4"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/gettext/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # Why deps on glib-dev ??? And glib build depends on gettext anyway...
15 DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4 \
16 ncurses gettext-tools"
17 BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev"
19 # Handle cross compilation. Glibc-locale are installed in cross chroot.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev"
22 ARCH_ARGS="--disable-acl" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS $ARCH_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 cp -a $install/usr/include $fs/usr
39 cp -a $install/usr/share/aclocal $fs/usr/share
40 cp -a $install/usr/share/gettext $fs/usr/share
42 # Remove "gettext-base" and "gettext-tools" files.
43 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do
44 rm $fs/usr/bin/$bin
45 done
46 rm $fs/usr/lib/libgettextlib*.so*
47 rm $fs/usr/lib/libgettextsrc*.so*
48 }