Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |