wok-current view gettext/receipt @ rev 25680

Add neofetch, remove *.la for conky deps
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 10 13:41:01 2024 +0000 (8 months ago)
parents e53dd413c6de
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gettext"
4 VERSION="0.21"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gettext/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="acl-dev attr-dev gettext-base gettext-tools glib-dev liblzma \
15 libxml2 libxml2-dev m4 ncurses pcre-dev" #libcroco (security unmaintained)
16 BUILD_DEPENDS="automake m4 acl-dev coreutils glib-dev libxml2-dev" #libcroco-dev
17 SPLIT="gettext-base gettext-tools"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation. Glibc-locale are installed in cross chroot.
22 case "$ARCH" in
23 arm) BUILD_DEPENDS="attr-dev ncurses-dev libxml2-tools libxml2-dev"
24 ARCH_ARGS="--disable-acl" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 # 0.21 for textstyle.h to be found:
38 #export CFLAGS="$CFLAGS -I../../libtextstyle/lib" &&
40 #Disable libtextstyle required by libcroco unmaintained
41 patch -p1 -i $stuff/gettext-0.21-disable-libtextstyle.patch
43 autoreconf --force
45 ./configure \
46 $CONFIGURE_ARGS \
47 $ARCH_ARGS &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib $fs/usr
59 cp -a $install/usr/include $fs/usr
60 cp -a $install/usr/share/aclocal $fs/usr/share
61 cp -a $install/usr/share/gettext $fs/usr/share
62 cp -a $install/usr/share/gettext-$VERSION $fs/usr/share
64 # Ensure remove .la files
65 find $fs -name "*.la" -delete
67 # Remove "gettext-base" and "gettext-tools" files.
68 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext
69 do
70 rm $fs/usr/bin/$bin
71 done
72 rm $fs/usr/lib/libgettextlib*.so*
73 rm $fs/usr/lib/libgettextsrc*.so*
74 }