Skip to content

Commit

Permalink
* add chmlib
Browse files Browse the repository at this point in the history
  • Loading branch information
kth5 committed May 5, 2019
1 parent 471d36b commit dab6e62
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
37 changes: 37 additions & 0 deletions chmlib/PKGBUILD
@@ -0,0 +1,37 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alexander 'dma147' Mieland <dma147@linux-stats.org>
# Contributor: Simon Morgan <simon@16hz.net>

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
}
11 changes: 11 additions & 0 deletions 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;

0 comments on commit dab6e62

Please sign in to comment.