wok-next annotate gettext/receipt @ rev 15362
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 02 13:07:29 2013 +0000 (2013-10-02) |
parents | b6587677282b |
children | 9e41e0f90e23 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
al@14903 | 4 VERSION="0.18.3" |
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... |
al@14903 | 15 DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4" |
al@14903 | 16 BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev" |
pankso@12147 | 17 |
pankso@12830 | 18 # Handle cross compilation. Glibc-locale are installed in cross chroot. |
pankso@12830 | 19 case "$ARCH" in |
pankso@12833 | 20 arm) BUILD_DEPENDS="ncurses-dev libxml2-tools libxml2-dev" ;; |
pankso@12830 | 21 esac |
gokhlayeh@8184 | 22 |
pankso@29 | 23 # Rules to configure and make the package. |
pankso@29 | 24 compile_rules() |
pankso@29 | 25 { |
pankso@29 | 26 cd $src |
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 |
pankso@2745 | 40 # Remove gettext-base files. |
pankso@2745 | 41 rm $fs/usr/bin/gettext |
pankso@2745 | 42 rm $fs/usr/bin/gettext.sh |
slaxemulator@6808 | 43 rm $fs/usr/bin/envsubst |
slaxemulator@6808 | 44 rm $fs/usr/bin/ngettext |
pankso@12147 | 45 } |