wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="icu"
4 VERSION="70.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="C, C++ and Java libraries providing Unicode and Globalization."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://icu.unicode.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/unicode-org/$PACKAGE/archive/release-${VERSION/./-}.tar.gz"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://icu.unicode.org/download 2>/dev/null | \
18 sed '/ is now available/!d;s| is now available.*||;s|ICU ||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src/icu4c/source
25 #sed -i 's/dirname -- /dirname/' configure
26 #{
27 ./configure \
28 --disable-samples \
29 --disable-tests \
30 --enable-auto-cleanup \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cook_copy_folders bin
42 cook_copy_folders sbin
43 cook_copy_files *.so*
44 cp -a $install/usr/share/icu $fs/usr/share
45 }