PKGBUILDs/core/icu/PKGBUILD

60 lines
1.7 KiB
Bash
Raw Normal View History

2014-04-18 21:56:06 +00:00
# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Art Gramlich <art@gramlich-net.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix icudata library linking on ARM
pkgname=icu
2016-12-11 19:21:25 +00:00
pkgver=58.2
2017-04-23 23:06:36 +00:00
pkgrel=2
2014-04-18 21:56:06 +00:00
pkgdesc="International Components for Unicode library"
arch=(i686 x86_64)
url="http://www.icu-project.org/"
2014-10-20 19:07:51 +00:00
license=('custom:icu')
2014-04-18 21:56:06 +00:00
depends=('gcc-libs>=4.7.1-5' 'sh')
#makedepends=('clang')
2016-12-01 13:37:45 +00:00
# no https available
2014-04-18 21:56:06 +00:00
source=(#http://download.icu-project.org/files/${pkgname}4c/${pkgver}/${pkgname}4c-${pkgver/./_}-src.tgz
2016-12-01 13:37:45 +00:00
http://download.icu-project.org/files/${pkgname}4c/${pkgver}/${pkgname}4c-${pkgver//./_}-src.tgz
icu-58.1-iterator-reset.patch
2017-04-23 23:06:36 +00:00
changeset-39671-CVE-2017-7867+7868.patch
2016-12-01 13:37:45 +00:00
icudata-stdlibs.patch)
# upstream offers md5sum checks, only asc file for md5sum check
2017-04-23 23:06:36 +00:00
sha256sums=('2b0a4410153a9b20de0e20c7d8b66049a72aef244b53683d0d7521371683da0c'
'8034928bcff89eca84d8d0f22fa9b6bdba5e0608a984f64fe7afe41b91bbea97'
'cf0c6f946d7336bd46857c52308fd67171918f24fcf19015b5a47a8d2fb8ca0c'
'13444e40ec8da75a3c4140448b25bdf51887a2691c9afdb0c63134ddd33d915b')
2014-04-18 21:56:06 +00:00
prepare() {
cd icu/source
2017-04-23 23:06:36 +00:00
# http://bugs.icu-project.org/trac/ticket/12827
patch -Np4 -i "${srcdir}"/icu-58.1-iterator-reset.patch
2016-12-01 13:37:45 +00:00
2017-04-23 23:06:36 +00:00
patch -Np4 -i "${srcdir}"/changeset-39671-CVE-2017-7867+7868.patch
2016-12-01 13:37:45 +00:00
2014-04-18 21:56:06 +00:00
patch -p2 -i ${srcdir}/icudata-stdlibs.patch
}
build() {
cd icu/source
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--sbindir=/usr/bin
make
}
check() {
cd icu/source
make -k check # passes all
}
package() {
cd icu/source
make -j1 DESTDIR=${pkgdir} install
# Install license
install -Dm644 ${srcdir}/icu/license.html ${pkgdir}/usr/share/licenses/icu/license.html
}