wok-6.x view icu/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 56ee356284c6
children 303da0a92933
line source
1 # SliTaz package receipt.
3 PACKAGE="icu"
4 VERSION="54.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 SOURCE="icu4c"
10 TARBALL="$SOURCE-${VERSION//./_}-src.tgz"
11 WEB_SITE="https://www.icu-project.org/"
12 WGET_URL="http://download.icu-project.org/files/$SOURCE/$VERSION/$TARBALL"
13 #WGET_URL="http://www.sfr-fresh.com/unix/misc/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://icu.unicode.org/download 2>/dev/null | \
19 sed '/ is now available/!d;s| is now available.*||;s|ICU ||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src/source
26 #sed -i 's/dirname -- /dirname/' configure
27 #{
28 ./configure \
29 --disable-tests \
30 --disable-samples \
31 --enable-auto-cleanup \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 #} 2>&1 | sed -e 's|\(./config.*\)No such file|\1no such file|'
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs/usr/share
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr/
44 cp -a $install/usr/sbin $fs/usr/
45 cp -a $install/usr/share/icu $fs/usr/share
46 }