wok-current annotate 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 |
rev | line source |
---|---|
pankso@875 | 1 # SliTaz package receipt. |
pankso@875 | 2 |
pankso@875 | 3 PACKAGE="icu" |
devl547@17573 | 4 VERSION="54.1" |
pankso@875 | 5 CATEGORY="system-tools" |
pankso@875 | 6 SHORT_DESC="C/C++ and Java libraries providing Unicode and Globalization." |
pankso@875 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15318 | 8 LICENSE="MIT" |
slaxemulator@9138 | 9 SOURCE="icu4c" |
slaxemulator@9138 | 10 TARBALL="$SOURCE-${VERSION//./_}-src.tgz" |
pascal@23797 | 11 WEB_SITE="https://www.icu-project.org/" |
slaxemulator@9138 | 12 WGET_URL="http://download.icu-project.org/files/$SOURCE/$VERSION/$TARBALL" |
slaxemulator@9138 | 13 #WGET_URL="http://www.sfr-fresh.com/unix/misc/$TARBALL" |
pankso@875 | 14 |
pascal@24445 | 15 # What is the latest version available today? |
pascal@24445 | 16 current_version() |
pascal@24445 | 17 { |
pascal@24445 | 18 wget -O - https://icu.unicode.org/download 2>/dev/null | \ |
pascal@24445 | 19 sed '/ is now available/!d;s| is now available.*||;s|ICU ||;q' |
pascal@24445 | 20 } |
pascal@24445 | 21 |
pankso@875 | 22 # Rules to configure and make the package. |
pankso@875 | 23 compile_rules() |
pankso@875 | 24 { |
gokhlayeh@8218 | 25 cd $src/source |
devl547@17585 | 26 #sed -i 's/dirname -- /dirname/' configure |
devl547@17585 | 27 #{ |
pankso@875 | 28 ./configure \ |
pankso@875 | 29 --disable-tests \ |
gokhlayeh@11573 | 30 --disable-samples \ |
devl547@17585 | 31 --enable-auto-cleanup \ |
gokhlayeh@11573 | 32 $CONFIGURE_ARGS && |
slaxemulator@9138 | 33 make && |
pankso@9971 | 34 make DESTDIR=$DESTDIR install |
devl547@17585 | 35 #} 2>&1 | sed -e 's|\(./config.*\)No such file|\1no such file|' |
pankso@875 | 36 } |
pankso@875 | 37 |
pankso@875 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@875 | 39 genpkg_rules() |
pankso@875 | 40 { |
devl547@17585 | 41 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@15318 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
devl547@17585 | 43 cp -a $install/usr/bin $fs/usr/ |
devl547@17585 | 44 cp -a $install/usr/sbin $fs/usr/ |
devl547@17585 | 45 cp -a $install/usr/share/icu $fs/usr/share |
pankso@875 | 46 } |