blob: 6ae820b3f816bfe56c7cef48e42e3c1ae3146941 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=icu
pkgver=4.6
# convert x.y.z to x_y_z
_x=${pkgver%%.*}
_ver=${pkgver%.*} # _ver=x.y
_y=${_ver#*.}
_z=${pkgver##*.}
_ver=${_y}_${_z}
pkgrel=0
pkgdesc="International Components for Unicode library"
url="http://www.icu-project.org/"
arch="x86 x86_64"
license="custom:icu"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends=
source="http://download.icu-project.org/files/icu4c/${pkgver}/${pkgname}4c-$_ver-src.tgz
icu-ccache.patch
"
_builddir="$srcdir"/icu/source
prepare() {
cd "$_builddir"
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 --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man
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
}
md5sums="43e56b71c407be5154de681eaa646a4a icu4c-4_6-src.tgz
e729eb08687b042e40df572932cbf9ce icu-ccache.patch"
|