wok-current annotate icu/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | e7bde16e8f79 |
children |
rev | line source |
---|---|
pankso@875 | 1 # SliTaz package receipt. |
pankso@875 | 2 |
pankso@875 | 3 PACKAGE="icu" |
Hans-G?nter@24450 | 4 VERSION="70.1" |
pankso@875 | 5 CATEGORY="system-tools" |
Hans-G?nter@24450 | 6 SHORT_DESC="C, C++ and Java libraries providing Unicode and Globalization." |
pankso@875 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15318 | 8 LICENSE="MIT" |
pascal@24941 | 9 WEB_SITE="https://icu.unicode.org/" |
Hans-G?nter@24450 | 10 |
Hans-G?nter@24450 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24450 | 12 WGET_URL="https://github.com/unicode-org/$PACKAGE/archive/release-${VERSION/./-}.tar.gz" |
pankso@875 | 13 |
pascal@24445 | 14 # What is the latest version available today? |
pascal@24445 | 15 current_version() |
pascal@24445 | 16 { |
pascal@24445 | 17 wget -O - https://icu.unicode.org/download 2>/dev/null | \ |
pascal@24445 | 18 sed '/ is now available/!d;s| is now available.*||;s|ICU ||;q' |
pascal@24445 | 19 } |
pascal@24445 | 20 |
pankso@875 | 21 # Rules to configure and make the package. |
pankso@875 | 22 compile_rules() |
pankso@875 | 23 { |
Hans-G?nter@24450 | 24 cd $src/icu4c/source |
devl547@17585 | 25 #sed -i 's/dirname -- /dirname/' configure |
devl547@17585 | 26 #{ |
Hans-G?nter@24450 | 27 ./configure \ |
Hans-G?nter@24450 | 28 --disable-samples \ |
Hans-G?nter@24450 | 29 --disable-tests \ |
Hans-G?nter@24450 | 30 --enable-auto-cleanup \ |
gokhlayeh@11573 | 31 $CONFIGURE_ARGS && |
slaxemulator@9138 | 32 make && |
Hans-G?nter@24450 | 33 make install DESTDIR=$DESTDIR |
pankso@875 | 34 } |
pankso@875 | 35 |
pankso@875 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@875 | 37 genpkg_rules() |
pankso@875 | 38 { |
Hans-G?nter@24450 | 39 mkdir -p $fs/usr/share |
Hans-G?nter@24450 | 40 |
Hans-G?nter@24450 | 41 cook_copy_folders bin |
Hans-G?nter@24450 | 42 cook_copy_folders sbin |
Hans-G?nter@24450 | 43 cook_copy_files *.so* |
Hans-G?nter@24450 | 44 cp -a $install/usr/share/icu $fs/usr/share |
pankso@875 | 45 } |