wok-current annotate gettext/receipt @ rev 20720
updated aqualung (0.9beta10 -> 1.02)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 08 15:11:05 2019 +0100 (2019-02-08) |
parents | de851b76d3c8 |
children | 213fbb313815 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
al@19845 | 4 VERSION="0.19.8.1" |
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" |
al@19845 | 9 WEB_SITE="https://www.gnu.org/software/gettext/" |
pankso@12830 | 10 HOST_ARCH="i486 arm" |
pankso@29 | 11 |
al@19845 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19845 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19845 | 14 |
al@19845 | 15 # Runtime depends, then dev-depends |
al@19845 | 16 DEPENDS="gettext-base gettext-tools libcroco liblzma libxml2 \ |
al@19845 | 17 acl-dev attr-dev libcroco-dev libxml2-dev glib-dev pcre-dev m4" |
al@19845 | 18 BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev" |
al@19845 | 19 SPLIT="gettext-base gettext-tools" |
pankso@12147 | 20 |
pankso@12830 | 21 # Handle cross compilation. Glibc-locale are installed in cross chroot. |
pankso@12830 | 22 case "$ARCH" in |
pascal@19098 | 23 arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev" |
pascal@19098 | 24 ARCH_ARGS="--disable-acl" ;; |
pankso@12830 | 25 esac |
gokhlayeh@8184 | 26 |
pankso@29 | 27 # Rules to configure and make the package. |
pankso@29 | 28 compile_rules() |
pankso@29 | 29 { |
pascal@19098 | 30 ./configure $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@12830 | 31 make && make install |
pankso@29 | 32 } |
pankso@29 | 33 |
pankso@29 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 35 genpkg_rules() |
pankso@29 | 36 { |
pankso@2745 | 37 mkdir -p $fs/usr/share |
pankso@12830 | 38 cp -a $install/usr/bin $fs/usr |
pankso@12830 | 39 cp -a $install/usr/lib $fs/usr |
pankso@12830 | 40 cp -a $install/usr/include $fs/usr |
pankso@12830 | 41 cp -a $install/usr/share/aclocal $fs/usr/share |
pankso@12830 | 42 cp -a $install/usr/share/gettext $fs/usr/share |
al@18526 | 43 |
al@18526 | 44 # Remove "gettext-base" and "gettext-tools" files. |
al@18539 | 45 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do |
al@18526 | 46 rm $fs/usr/bin/$bin |
al@18526 | 47 done |
al@18526 | 48 rm $fs/usr/lib/libgettextlib*.so* |
al@18526 | 49 rm $fs/usr/lib/libgettextsrc*.so* |
pankso@12147 | 50 } |