diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-13 11:32:48 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-13 11:32:48 -0400 |
commit | 0986e78484599ae055896f00b88ad588c6ba2d81 (patch) | |
tree | 6c15225d13d1989a96685d5e68d95178b43310e5 /pkgbuild/icu | |
parent | c9dcc820b15fb98a7288aed6c87570a263e6dd63 (diff) | |
download | pacman-buildsys-master.tar.gz |
Diffstat (limited to 'pkgbuild/icu')
-rw-r--r-- | pkgbuild/icu/0001-fix-icudat.res-race-condition.patch | 11 | ||||
-rw-r--r-- | pkgbuild/icu/0002-config-mh-darwin.patch | 14 | ||||
-rw-r--r-- | pkgbuild/icu/PKGBUILD | 62 |
3 files changed, 87 insertions, 0 deletions
diff --git a/pkgbuild/icu/0001-fix-icudat.res-race-condition.patch b/pkgbuild/icu/0001-fix-icudat.res-race-condition.patch new file mode 100644 index 0000000..dc67013 --- /dev/null +++ b/pkgbuild/icu/0001-fix-icudat.res-race-condition.patch @@ -0,0 +1,11 @@ +--- source/data/Makefile.in.orig 2016-03-23 20:56:38.000000000 +0000 ++++ source/data/Makefile.in 2016-05-28 21:31:29.776107600 +0100 +@@ -364,7 +364,7 @@ + ifeq ($(ENABLE_SO_VERSION_DATA),1) + ifeq ($(PKGDATA_MODE),dll) + SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res +-$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc ++$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc $(OUTTMPDIR) + ifeq ($(MSYS_RC_MODE),1) + rc.exe -i$(srcdir)/../common -i$(top_builddir)/common -fo$@ $(CPPFLAGS) $< + else diff --git a/pkgbuild/icu/0002-config-mh-darwin.patch b/pkgbuild/icu/0002-config-mh-darwin.patch new file mode 100644 index 0000000..16b7b77 --- /dev/null +++ b/pkgbuild/icu/0002-config-mh-darwin.patch @@ -0,0 +1,14 @@ +--- source/config/mh-darwin.orig 2016-06-15 13:58:17.000000000 -0500 ++++ source/config/mh-darwin 2017-02-11 09:37:32.000000000 -0600 +@@ -30,11 +30,7 @@ + SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) + + ## Compiler switches to embed a library name and version information +-ifeq ($(ENABLE_RPATH),YES) + LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET)) +-else +-LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET)) +-endif + + ## Compiler switch to embed a runtime search path + LD_RPATH= diff --git a/pkgbuild/icu/PKGBUILD b/pkgbuild/icu/PKGBUILD new file mode 100644 index 0000000..46b1a68 --- /dev/null +++ b/pkgbuild/icu/PKGBUILD @@ -0,0 +1,62 @@ +# $Id$ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> +# Contributor: Art Gramlich <art@gramlich-net.com> + +pkgname=icu +pkgver=54.1 +pkgrel=1 +pkgdesc="International Components for Unicode library" +arch=(x86_64) +url="http://www.icu-project.org/" +license=('custom:icu') +#depends=('gcc-libs' 'sh') +#makedepends=('clang') +options=('!makeflags') +# no https available +source=(#http://download.icu-project.org/files/${pkgname}4c/${pkgver}/${pkgname}4c-${pkgver/./_}-src.tgz + #https://ssl.icu-project.org/files/${pkgname}4c/${pkgver}/${pkgname}4c-${pkgver//./_}-src.tgz{,.asc}) + https://ssl.icu-project.org/files/${pkgname}4c/${pkgver}/${pkgname}4c-${pkgver//./_}-src.tgz) +# upstream offers md5sum checks, only asc file for md5sum check +md5sums=('e844caed8f2ca24c088505b0d6271bc0') + #'43861b127744b3c0b9d7f386f4b9fa40' ) + #'SKIP') +#validpgpkeys=('BA90283A60D67BA0DD910A893932080F4FB419E3') # "Steven R. Loomis (filfla-signing) <srloomis@us.ibm.com>" +#validpgpkeys+=('9731166CD8E23A83BEE7C6D3ACA5DBE1FD8FABF1') # "Steven R. Loomis (ICU Project) <srl@icu-project.org>" + +prepare() { + cd icu/source + #patch -Np1 < ${startdir}/0001-*.patch + #patch -Np1 < ${startdir}/0002-*.patch +} + +build() { + cd icu/source + + ./configure --prefix=$BUILD_PREFIX \ + --sysconfdir=$BUILD_PREFIX/etc \ + --mandir=$BUILD_PREFIX/share/man \ + --sbindir=$BUILD_PREFIX/bin \ + --disable-samples \ + --disable-tests \ + --disable-rpath \ + --enable-shared \ + --enable-static + make -j1 +} + +check() { + cd icu/source + #make -k check +} + +package() { + cd icu/source + make -j1 DESTDIR=${pkgdir} install + cp -a -v lib/libicudata.$pkgver.dylib ${pkgdir}${BUILD_PREFIX}/lib/libicudata.$pkgver.dylib + fix_rpath + + # Install license + #install -Dm644 ${srcdir}/icu/LICENSE ${pkgdir}${BUILD_PREFIX}/share/licenses/icu/LICENSE + +} + |