blob: 1ff795041b75d403cff8f6cabe4962d3b4ad422e (
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
|
# Maintainer: Trenzalore
_major=72
_gitname=icu
_pkgname=$_gitname$_major
pkgname="$_pkgname-bin"
pkgver="$_major.1"
pkgrel=1
pkgdesc="International Components for Unicode library (version 72)"
arch=('x86_64')
url="https://github.com/unicode-org/icu"
license=('custom:icu')
depends=('gcc-libs' 'sh')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$url/releases/download/release-${pkgver/./-}/icu4c-${pkgver/./_}-Fedora_Linux36-x64.tgz")
b2sums=('9a5e257bb5558bf55d086e4308bc15e7e9cad8d47d9d67e6cac32f6f5164cf965d53d32002b8958076ef75607506be6c3e2844d6541d66d9021bf3d7ad84a9f3')
_src_libdir=icu/usr/local/lib
prepare() {
# prevent conflicts with other versions of icu
rm -rf $_src_libdir/{icu,pkgconfig}
_solist=('data' 'i18n' 'io' 'test' 'tu' 'uc')
for _i in ${_solist[@]}; do
rm $_src_libdir/libicu$_i.so
done
}
package() {
cd $_src_libdir
install -Dm644 * -t "$pkgdir/usr/lib/"
install -Dm644 ../share/$_gitname/$pkgver/LICENSE \
-t "$pkgdir/usr/share/licenses/$pkgname"
}
|