blob: 334ddcab806220e22bc52abbab976d05821f7416 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chmlib
pkgver=0.40
pkgrel=2
pkgdesc="Library for dealing with Microsoft ITSS/CHM format files"
url="http://morte.jedrea.com/~jedwin/projects/chmlib/"
arch="all"
license="LGPL2+"
depends=""
depends_dev=
makedepends=""
install=""
subpackages="$pkgname-dev"
source="http://morte.jedrea.com/~jedwin/projects/${pkgname}/${pkgname}-${pkgver}.tar.bz2
headers.patch
stdtypes.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
local i
for i in $source; do
case $i in
*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="7ea49ed8c335215c1edc6fae83e6b912 chmlib-0.40.tar.bz2
668afec836d2af8e50e6f8a953744539 headers.patch
d8c82136eb221506f42b48d219cc3f5d stdtypes.patch"
sha256sums="3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3 chmlib-0.40.tar.bz2
60b67803466def393789c10daef789e0a54176aa1493d2e1e285730c60185683 headers.patch
1d1124f81c955dcf856013d37095c212a8ad858a1dce52bd07fecc736a0eb82e stdtypes.patch"
sha512sums="3a3e151cf455b19e9e7c163a1d1e5ac52e8196f0b98f77932c72af58f3517824b9244667a18279ae754ccea784f6d6ab0c47465e74e3768ce98bb7dca0ca16e3 chmlib-0.40.tar.bz2
940d6b766ada58cbdad31a4748de1f5bcad83170d2b233397dee80f4bd92e13c0f3fa2a027b5834c8547018f67e12726cbd6a8de7540ca9b3d12fda45db02d1d headers.patch
afd879f78d4d532be3f3253a645b54588b0faff7445bc856b461ceba4ad0fb8d4d1fd9d1497675894cfb40c2174e21a8a2842a35e66deb6ab8adab6cbb996319 stdtypes.patch"
|