blob: 98696604455456bc186e63d6f4479b18936d2009 (
plain)
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=icu
pkgver=56.1
# convert x.y.z to x_y_z
_ver=${pkgver//./_}
pkgrel=2
pkgdesc="International Components for Unicode library"
url="http://www.icu-project.org/"
arch="all"
license="custom:icu"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
depends=
makedepends=
source="http://download.icu-project.org/files/icu4c/${pkgver}/${pkgname}4c-$_ver-src.tgz
icu-timezone.patch
CVE-2016-7415.patch
CVE-2017-7867-7868.patch
"
# secfixes:
# 56.1-r2:
# - CVE-2017-7867
# - CVE-2017-7868
_builddir="$srcdir"/icu/source
prepare() {
cd "$_builddir"
update_config_sub || return 1
local x
# https://bugs.icu-project.org/trac/ticket/6102
for x in ARFLAGS CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
sed -i -e "/^${x} =.*/s:@${x}@::" "config/Makefile.inc.in" \
|| return 1
done
for i in $source; do
case "$i" in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--with-data-packaging=library \
--disable-samples \
--mandir=/usr/share/man \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
chmod +x "$pkgdir"/usr/bin/icu-config
install -Dm644 "$srcdir"/icu/license.html \
"$pkgdir"/usr/share/licenses/icu/license.html
}
libs() {
default_libs
replaces="icu"
}
md5sums="c4a2d71ff56aec5ebfab2a3f059be99d icu4c-56_1-src.tgz
2c81d9c9a6ea0af5b7391e001f37a5e0 icu-timezone.patch
12b7d114d596a5daaf632816bbf91edf CVE-2016-7415.patch
5d1d5d52155eaa36b9e8eb89ee0fd5cc CVE-2017-7867-7868.patch"
sha256sums="3a64e9105c734dcf631c0b3ed60404531bce6c0f5a64bfe1a6402a4cc2314816 icu4c-56_1-src.tgz
1c3c432228ee254af7adc995d65b65a4c9dac3b868fe1e49fe588a0ffa55a158 icu-timezone.patch
7392b0685dd46a3f731e6d3a83ff3f42067eb80f99e434ff801afe2aa38da6b8 CVE-2016-7415.patch
408f9efdf73d9dc0a700de611d57109a7a85e75895a650b8d459962709939243 CVE-2017-7867-7868.patch"
sha512sums="297fd91ce6c478309ac3d18813f1b3ff39a992584e3bafb79e2e816a516e903af6b86c6318e1104cda0bb29ba7c0414b65c1e83c0ed0e848ce897a06d7678d9a icu4c-56_1-src.tgz
40489c36e28e160f08e045acab6c19cdb712ad3b7f87f67099deac7d579aaf13d8841cd3278a6bb0e998b5c34a378348a13fcc8bb14c9c4eb4f6adbd10d66825 icu-timezone.patch
0aef517165b3aea0e081db63ba2e75e57af7b4fc05eb0cdd222606001efd8bbca1457910f5909515a4a2b14c2d2c7dac426d659d16021cd8d05096c8c12fc64d CVE-2016-7415.patch
4b6a6d5a2d96ca2beb400170278745871f6903ff6d0b1e83ddaae3e13dfc872e94805e16540f2e2e9f797cdf9b47d06152e728ed76c77a63c36aeeb1ad8870ad CVE-2017-7867-7868.patch"
|