wok annotate gettext/receipt @ rev 23900
updated nnn (3.1 -> 3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 30 17:38:46 2020 +0100 (2020-07-30) |
parents | 17abf532f3a7 |
children | 71360a13cd94 |
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@29 | 10 |
al@19845 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19845 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19845 | 13 |
Hans-G?nter@23815 | 14 DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev libcroco |
mojo@23843 | 15 libcroco-dev liblzma libxml2 libxml2-dev m4 ncurses pcre-dev" |
Hans-G?nter@23815 | 16 BUILD_DEPENDS="acl-dev glib-dev libcroco-dev libxml2-dev" |
al@19845 | 17 SPLIT="gettext-base gettext-tools" |
pankso@12147 | 18 |
Hans-G?nter@23815 | 19 HOST_ARCH="i486 arm" |
Hans-G?nter@23815 | 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 { |
Hans-G?nter@23815 | 30 ./configure \ |
Hans-G?nter@23815 | 31 $CONFIGURE_ARGS \ |
Hans-G?nter@23815 | 32 $ARCH_ARGS && |
Hans-G?nter@23815 | 33 make && |
Hans-G?nter@23815 | 34 make install |
pankso@29 | 35 } |
pankso@29 | 36 |
pankso@29 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 38 genpkg_rules() |
pankso@29 | 39 { |
pankso@2745 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@23815 | 41 |
Hans-G?nter@23815 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23815 | 43 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23815 | 44 cp -a $install/usr/include $fs/usr |
Hans-G?nter@23815 | 45 cp -a $install/usr/share/aclocal $fs/usr/share |
Hans-G?nter@23815 | 46 cp -a $install/usr/share/gettext $fs/usr/share |
Hans-G?nter@23816 | 47 cp -a $install/usr/share/gettext-0.19.8 $fs/usr/share |
al@18526 | 48 |
al@18526 | 49 # Remove "gettext-base" and "gettext-tools" files. |
Hans-G?nter@23815 | 50 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext |
Hans-G?nter@23815 | 51 do |
al@18526 | 52 rm $fs/usr/bin/$bin |
Hans-G?nter@23815 | 53 done |
Hans-G?nter@23815 | 54 rm $fs/usr/lib/libgettextlib*.so* |
Hans-G?nter@23815 | 55 rm $fs/usr/lib/libgettextsrc*.so* |
pankso@12147 | 56 } |