From f9c674a5e6bceac37a92cf484c2280d2787c6eda Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 9 Apr 2018 11:13:05 +0200 Subject: first commit --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..7c11448 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = icu60 + pkgdesc = International Components for Unicode library + pkgver = 60.2 + pkgrel = 1 + url = http://www.icu-project.org/ + arch = i686 + arch = x86_64 + license = custom:"icu" + depends = gcc-libs>=4.7.1-5 + source = https://vorboss.dl.sourceforge.net/project/icu/ICU4C/60.2/icu4c-60_2-src.tgz + sha256sums = f073ea8f35b926d70bb33e6577508aa642a8b316a803f11be20af384811db418 + +pkgname = icu60 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7a8c4bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Author: neodarz + +_pkgname=icu +pkgname=${_pkgname}60 +pkgver=60.2 +pkgrel=1 +pkgdesc="International Components for Unicode library" +arch=('i686' 'x86_64') +url="http://www.icu-project.org/" +license=('custom:"icu"') +depends=('gcc-libs>=4.7.1-5') +source=(https://vorboss.dl.sourceforge.net/project/${_pkgname}/ICU4C/${pkgver}/${_pkgname}4c-${pkgver//./_}-src.tgz) +sha256sums=('f073ea8f35b926d70bb33e6577508aa642a8b316a803f11be20af384811db418') + +prepare() { + # fix xlocale.h problems (FS#55246) + cd ${srcdir}/${_pkgname}/source + sed -i 's/xlocale/locale/' i18n/digitlst.cpp +} + +build() { + cd ${srcdir}/${_pkgname}/source + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man + make -j5 +} + +package() { + cd ${srcdir}/${_pkgname}/source + make -j5 DESTDIR=${pkgdir} install + rm -r "${pkgdir}"/usr/{bin,include,sbin,share,lib/*so,lib/icu/{Makefile.inc,current,pkgdata.inc}} + rm -r "${pkgdir}/usr/lib/pkgconfig" + + # Install license + install -Dm644 ${srcdir}/${_pkgname}/license.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html +} -- cgit v1.2.1