wok-next view icu/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children e19ff076dc63
line source
1 # SliTaz package receipt v2.
3 PACKAGE="icu"
4 VERSION="60.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="International Components for Unicode"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://site.icu-project.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/icu.html"
12 # We need to get sources from SVN in order to customize ICU and shrink its size.
13 # http://userguide.icu-project.org/icudata#TOC-Customizing-ICU-s-Data-Library
14 #
15 #TARBALL="$PACKAGE-$VERSION.tar.gz"
16 #WGET_URL="http://download.icu-project.org/files/icu4c/$VERSION/icu4c-${VERSION//./_}-src.tgz"
17 #TARBALL_MD5="3d164a2d1bcebd1464c6160ebb8315ef"
18 TARBALL="$PACKAGE-$VERSION.tar.bz2"
19 WGET_URL="svn|http://source.icu-project.org/repos/icu/tags/release-${VERSION//./-}/"
21 BUILD_DEPENDS="subversion"
22 SPLIT="libicu $PACKAGE $PACKAGE-dev \
23 libicu-full:full $PACKAGE-full:full $PACKAGE-full-dev:full"
25 compile_rules() {
26 # fix math
27 cd $src/icu4c/source
28 sed -i.orig 's/xlocale/locale/' i18n/digitlst.cpp
29 if [ -z "$SET" ]; then
30 rm data/mappings/ucm*.mk
31 cp -r $stuff/* .
32 fi
34 ./configure $CONFIGURE_ARGS &&
35 make &&
36 make install
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 libicu)
42 copy libicuuc.so* libicudata.so*
43 CAT="libs|core libraries"
44 DEPENDS="glibc-base"
45 ;;
46 icu)
47 copy bin/ sbin/ *.so* @rm
48 rm $fs/usr/bin/icu-config
49 DEPENDS="libicu"
50 ;;
51 icu-dev)
52 copy @std @dev @rm
53 DEPENDS="libicu icu"
54 ;;
56 libicu-full)
57 copy libicuuc.so* libicudata.so*
58 CAT="libs|core libraries"
59 DEPENDS="glibc-base"
60 PROVIDE="libicu"
61 ;;
62 icu-full)
63 copy bin/ sbin/ *.so* @rm
64 rm $fs/usr/bin/icu-config
65 DEPENDS="libicu-full"
66 PROVIDE="icu"
67 ;;
68 icu-full-dev)
69 copy @std @dev @rm
70 DEPENDS="libicu-full icu-full"
71 PROVIDE="icu-dev"
72 ;;
73 esac
74 }