wok view icu/receipt @ rev 25609
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 20 14:03:05 2023 +0000 (13 months ago) |
parents | 5db546345599 |
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 - ${WGET_URL%/arch*}/tags 2>/dev/null | \
18 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;s|%2F||;s|-|.|g;q'
19 }
21 DEPENDS="gcc83-lib-base"
22 BUILD_DEPENDS="gcc83"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/icu4c/source
28 #sed -i 's/dirname -- /dirname/' configure
29 #{
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
33 --disable-samples \
34 --disable-tests \
35 --enable-auto-cleanup \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cook_copy_folders bin
47 cook_copy_folders sbin
48 cook_copy_files *.so*
49 cp -a $install/usr/share/icu $fs/usr/share
50 }