1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# Maintainer: dreieck
# Contributor: Ujhhgtg (https://aur.archlinux.org/account/Ujhhgtg)
## Based on `PKGBUILD` for package `icu71`, version 71.1-1, by Ujhhgtg (https://aur.archlinux.org/account/Ujhhgtg).
_pkgname=icu
_pkgmainver=74
_pkgminorver=2
pkgname="${_pkgname}${_pkgmainver}"
pkgver="${_pkgmainver}.${_pkgminorver}"
pkgrel=6
pkgdesc="International Components for Unicode library (legacy version ${_pkgmainver})."
arch=(
'i486'
'i686'
'pentium4'
'x86_64'
'armv6h'
'armv7h'
'aarch64'
)
url="http://www.icu-project.org/"
license=('custom:icu')
depends=(
'gcc-libs'
'glibc'
)
makedepends=(
'clang'
'make'
'patch'
'python'
)
provides=(
# "${_pkgname}=${pkgver}" # Do not provide `icu` itself, since the executable tools are not provided.
"libicudata.so=${_pkgmainver}"
"libicui18n.so=${_pkgmainver}"
"libicuio.so=${_pkgmainver}"
"libicutest.so=${_pkgmainver}"
"libicutu.so=${_pkgmainver}"
"libicuuc.so=${_pkgmainver}"
)
conflicts=(
"${_pkgname}=${_pkgmainver}"
"${_pkgname}=${_pkgmainver}.0"
"${_pkgname}=${_pkgmainver}.1"
"${_pkgname}=${_pkgmainver}.2"
"${_pkgname}=${_pkgmainver}.3"
"${_pkgname}=${_pkgmainver}.4"
"${_pkgname}=${_pkgmainver}.5"
"${_pkgname}=${_pkgmainver}.6"
"${_pkgname}=${_pkgmainver}.7"
"${_pkgname}=${_pkgmainver}.8"
"${_pkgname}=${_pkgmainver}.9"
"libicudata.so=${_pkgmainver}"
"libicui18n.so=${_pkgmainver}"
"libicuio.so=${_pkgmainver}"
"libicutest.so=${_pkgmainver}"
"libicutu.so=${_pkgmainver}"
"libicuuc.so=${_pkgmainver}"
)
source=(
"https://github.com/unicode-org/icu/releases/download/release-${pkgver//./-}/icu4c-${pkgver//./_}-src.tgz"
#"https://github.com/unicode-org/icu/releases/download/release-${pkgver//./-}/icu4c-${pkgver//./_}-src.tgz.asc"
"ICU-22132.patch"
"icudata-stdlibs.patch"
"https://github.com/unicode-org/icu/raw/main/LICENSE"
)
md5sums=('94c0b370f43123ea92b146ebea9c709d'
'7e501a2e7d14ce94b843e6853d96e4c2'
'4e5202245fce364490334bd66b5edabc'
'ce7acbc234de1fa02ab706fc47ca65df')
sha256sums=('68db082212a96d6f53e35d60f47d38b962e9f9d207a74cfac78029ae8ff5e08c'
'f534b472dd7a6961591466eef542e2c3ad698d3008c9b6af813c66cbc0b4dd8e'
'13444e40ec8da75a3c4140448b25bdf51887a2691c9afdb0c63134ddd33d915b'
'533baeb24c2ef84f58a0d08db3b63a6ed67699d272c0016719edba3f59a60222')
#validpgpkeys=(
# '4058F67406EAA6AB'
#)
prepare() {
cd icu/source
# Required fix for thunderbird 115 to show Calendar and sidebar properly
# https://bugzilla.mozilla.org/show_bug.cgi?id=1843007
# https://unicode-org.atlassian.net/browse/ICU-22132
patch -Np1 < "../../ICU-22132.patch"
patch -p2 -i ${srcdir}/icudata-stdlibs.patch
sed -r -i 's/(for ac_prog in )clang(\+\+)? /\1/g' configure
}
build()
{
cd "${_pkgname}/source"
## `--enable-tools` is needed to build `genrb` binary, which is needed somewhere during the compilation process.
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--sbindir=/usr/bin \
--disable-icu-config \
--disable-debug \
--enable-release \
--enable-shared \
--disable-static \
--disable-auto-cleanup \
--enable-draft \
--enable-renaming \
--disable-tracing \
--enable-plugins \
--enable-dyload \
--enable-rpath \
--disable-weak-threads \
--enable-extras \
--enable-icuio \
--enable-layoutex \
--enable-tools \
--disable-fuzzer \
--enable-tests \
--disable-samples \
--with-data-packaging=library
make
}
check()
{
cd "${_pkgname}/source"
make -k check
}
package()
{
cd "${_pkgname}/source"
make DESTDIR="${pkgdir}" install
## Remove files that would make this package conflict with the generic `icu` package, and other "garbage" files:
rm -rf "${pkgdir}"/usr/{bin,include,share,lib/{pkgconfig,*.so,icu/{current,Makefile.inc,pkgdata.inc}}}
## Install license
install -Dvm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|