blob: 9c59de22b4385174816f14881ffa5ef18eff911c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $Id: PKGBUILD 143719 2011-11-28 16:57:25Z giovanni $
# 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=3
pkgdesc="Library for dealing with Microsoft ITSS/CHM format files"
arch=('i686' 'x86_64' 'mips64el')
url="http://morte.jedrea.com/~jedwin/projects/chmlib/"
options=('!libtool')
license=('LGPL')
depends=('glibc')
source=("http://morte.jedrea.com/~jedwin/projects/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'src_chm_lib.c.diff')
md5sums=('7ea49ed8c335215c1edc6fae83e6b912'
'08fe9d62302a50f23cffb6c2a7524b6d')
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
# Patch from debian
[ "$CARCH" = "mips64el" ] && \
patch -Np1 -i $srcdir/src_chm_lib.c.diff
./configure --prefix=/usr \
--enable-examples=yes
make
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
|