From dab6e6272678452a93abaa86c05f3b0f8e6f6317 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Sun, 5 May 2019 20:57:41 +0000 Subject: [PATCH] * add chmlib --- chmlib/PKGBUILD | 37 ++++++++++++++++++++++++++++++++++ chmlib/chmlib-0.40-ppc64.patch | 11 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 chmlib/PKGBUILD create mode 100644 chmlib/chmlib-0.40-ppc64.patch diff --git a/chmlib/PKGBUILD b/chmlib/PKGBUILD new file mode 100644 index 0000000000..499b276229 --- /dev/null +++ b/chmlib/PKGBUILD @@ -0,0 +1,37 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Giovanni Scafora +# Contributor: Alexander 'dma147' Mieland +# Contributor: Simon Morgan + +pkgname=chmlib +pkgver=0.40 +pkgrel=5 +pkgdesc="Library for dealing with Microsoft ITSS/CHM format files" +arch=(x86_64 powerpc64le) +url="http://www.jedrea.com/chmlib/" +license=('LGPL') +depends=('glibc') +source=("http://www.jedrea.com/chmlib/chmlib-0.40.tar.bz2" + chmlib-0.40-ppc64.patch) +md5sums=('7ea49ed8c335215c1edc6fae83e6b912' + 'faa80ea24fd4a4ac6b0c94ac280defa8') + +prepare() { + cd "${srcdir}"/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/chmlib-0.40-ppc64.patch +} + +build() { + cd "${srcdir}"/${pkgname}-${pkgver} + + ./configure --prefix=/usr \ + --enable-examples=yes \ + --build=${CHOST} + make +} + +package() { + cd "${srcdir}"/${pkgname}-${pkgver} + + make DESTDIR="${pkgdir}" install +} diff --git a/chmlib/chmlib-0.40-ppc64.patch b/chmlib/chmlib-0.40-ppc64.patch new file mode 100644 index 0000000000..de0dd6b216 --- /dev/null +++ b/chmlib/chmlib-0.40-ppc64.patch @@ -0,0 +1,11 @@ +--- chmlib-0.40/src/chm_lib.c.orig 2019-05-05 20:55:19.050000000 +0000 ++++ chmlib-0.40/src/chm_lib.c 2019-05-05 20:56:01.950000000 +0000 +@@ -164,7 +164,7 @@ + + /* x86-64 */ + /* Note that these may be appropriate for other 64-bit machines. */ +-#elif __x86_64__ || __ia64__ ++#elif __x86_64__ || __ia64__ || __powerpc64__ + typedef unsigned char UChar; + typedef short Int16; + typedef unsigned short UInt16;