wok-6.x annotate gettext/receipt @ rev 18552

Up slitaz-tools(952)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 07 22:01:33 2015 +0200 (2015-11-07)
parents dab94fc8b27a
children 7392cb9148ca
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
pankso@12833 21 arm) BUILD_DEPENDS="ncurses-dev libxml2-tools libxml2-dev" ;;
pankso@12830 22 esac
gokhlayeh@8184 23
pankso@29 24 # Rules to configure and make the package.
pankso@29 25 compile_rules()
pankso@29 26 {
pankso@12830 27 ./configure $CONFIGURE_ARGS &&
pankso@12830 28 make && make install
pankso@29 29 }
pankso@29 30
pankso@29 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 32 genpkg_rules()
pankso@29 33 {
pankso@2745 34 mkdir -p $fs/usr/share
pankso@12830 35 cp -a $install/usr/bin $fs/usr
pankso@12830 36 cp -a $install/usr/lib $fs/usr
pankso@12830 37 cp -a $install/usr/include $fs/usr
pankso@12830 38 cp -a $install/usr/share/aclocal $fs/usr/share
pankso@12830 39 cp -a $install/usr/share/gettext $fs/usr/share
al@18526 40
al@18526 41 # Remove "gettext-base" and "gettext-tools" files.
al@18539 42 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do
al@18526 43 rm $fs/usr/bin/$bin
al@18526 44 done
al@18526 45 rm $fs/usr/lib/libgettextlib*.so*
al@18526 46 rm $fs/usr/lib/libgettextsrc*.so*
pankso@12147 47 }