wok-next annotate gettext/receipt @ rev 19532

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