wok-current annotate gettext/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | a1df341077ba |
children | a23978bfa665 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
Hans-G?nter@24595 | 4 VERSION="0.21" |
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 |
shann@25582 | 14 DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev liblzma \ |
shann@25582 | 15 libxml2 libxml2-dev m4 ncurses pcre-dev" #libcroco (security unmaintained) |
shann@25582 | 16 BUILD_DEPENDS="automake m4 acl-dev coreutils glib-dev libxml2-dev" #libcroco-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 |
pascal@24336 | 27 # What is the latest version available today? |
pascal@24336 | 28 current_version() |
pascal@24336 | 29 { |
pascal@24336 | 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 32 } |
pascal@24336 | 33 |
pankso@29 | 34 # Rules to configure and make the package. |
pankso@29 | 35 compile_rules() |
pankso@29 | 36 { |
Hans-G?nter@24595 | 37 # 0.21 for textstyle.h to be found: |
shann@25582 | 38 #export CFLAGS="$CFLAGS -I../../libtextstyle/lib" && |
shann@25582 | 39 |
shann@25582 | 40 #Disable libtextstyle required by libcroco unmaintained |
shann@25582 | 41 patch -p1 -i $stuff/gettext-0.21-disable-libtextstyle.patch |
shann@25582 | 42 |
shann@25582 | 43 autoreconf --force |
Hans-G?nter@24595 | 44 |
Hans-G?nter@23815 | 45 ./configure \ |
Hans-G?nter@23815 | 46 $CONFIGURE_ARGS \ |
Hans-G?nter@23815 | 47 $ARCH_ARGS && |
Hans-G?nter@23815 | 48 make && |
Hans-G?nter@23815 | 49 make install |
pankso@29 | 50 } |
pankso@29 | 51 |
pankso@29 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 53 genpkg_rules() |
pankso@29 | 54 { |
pankso@2745 | 55 mkdir -p $fs/usr/share |
Hans-G?nter@23815 | 56 |
Hans-G?nter@24595 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24595 | 58 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@24595 | 59 cp -a $install/usr/include $fs/usr |
Hans-G?nter@24595 | 60 cp -a $install/usr/share/aclocal $fs/usr/share |
Hans-G?nter@24595 | 61 cp -a $install/usr/share/gettext $fs/usr/share |
Hans-G?nter@24595 | 62 cp -a $install/usr/share/gettext-$VERSION $fs/usr/share |
al@18526 | 63 |
al@18526 | 64 # Remove "gettext-base" and "gettext-tools" files. |
Hans-G?nter@23815 | 65 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext |
Hans-G?nter@23815 | 66 do |
al@18526 | 67 rm $fs/usr/bin/$bin |
Hans-G?nter@23815 | 68 done |
Hans-G?nter@23815 | 69 rm $fs/usr/lib/libgettextlib*.so* |
Hans-G?nter@23815 | 70 rm $fs/usr/lib/libgettextsrc*.so* |
pankso@12147 | 71 } |