aboutsummaryrefslogtreecommitdiffstats
path: root/main/docbook2x/APKBUILD
blob: b724b98bff8e4681e5583d052a3abe804323a9ab (plain) (blame)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=docbook2x
pkgver=0.8.8
pkgrel=6
pkgdesc="DocBook converter to UNIX manpage and GNU Texinfo format"
url="http://docbook2x.sourceforge.net"
arch="all"
license="MIT"
depends="texinfo openjade docbook-xml docbook-xsl perl-xml-sax libxslt"
depends_dev=""
makedepends="autoconf automake"
install=""
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/docbook2X-$pkgver.tar.gz
	01_fix_static_datadir_evaluation.patch
	02_fix_418703_dont_use_abbreviated_sfnet_address.patch
	03_fix_420153_filename_whitespace_handling.patch
	04_fix_442782_preprocessor_declaration_syntax.patch
	05_fix_439214_error_on_missing_refentry.patch
	06_fix_man_typo.patch"

_builddir="$srcdir"/docbook2X-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
		esac
	done
}

build() {
	cd "$_builddir"
	autoreconf --install
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--program-transform-name 's/docbook2/docbook2x-/' \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b9b76a6af198c4f44574cfd17a322f01  docbook2X-0.8.8.tar.gz
4f30722b9a2181b9a60b0728778da59a  01_fix_static_datadir_evaluation.patch
ee9af2ae1fa3efe01a1a9d8b63b16d12  02_fix_418703_dont_use_abbreviated_sfnet_address.patch
dcde13abbd5aaf9b14c28ed95ba71a09  03_fix_420153_filename_whitespace_handling.patch
b6e70bf54e21ea09afcad4473c81104e  04_fix_442782_preprocessor_declaration_syntax.patch
6e764a5c1fa1ba990c350af65609c737  05_fix_439214_error_on_missing_refentry.patch
98798e3045cb535723a2273c4be2bda2  06_fix_man_typo.patch"
sha256sums="4077757d367a9d1b1427e8d5dfc3c49d993e90deabc6df23d05cfe9cd2fcdc45  docbook2X-0.8.8.tar.gz
4eb05e5265d1f7d5b46c72c05c18bc6141e4ae38a1b0b3152b1a1717d1a96fc1  01_fix_static_datadir_evaluation.patch
6698e421018f438009f8a2cc746bbf51274bcee6575e3ede66b633f8f045513b  02_fix_418703_dont_use_abbreviated_sfnet_address.patch
ac5755da0dbdd67e7131284e865d86df24a56ac26cfbcdcdbe561926a54999fd  03_fix_420153_filename_whitespace_handling.patch
0f571f0e9576ef09a07c46da76723cd3f83085ccf8daf25dee15b9921455112a  04_fix_442782_preprocessor_declaration_syntax.patch
273eaa08cfff75bb5fab4975761d1e427e4180d82700da396901a59ed0546c0d  05_fix_439214_error_on_missing_refentry.patch
e2ac95b462563168a74e7ce988e78800d0dcade3fdc010678a9fc3524649a8a1  06_fix_man_typo.patch"
sha512sums="cc336017ad734fc62d96d289105e8ea154c418a03a37f3e21b0b3520063f8b466b4aae5a5aec2e0b83f6324c6c79b5557247a93338d0a9882a94a44112f6b65c  docbook2X-0.8.8.tar.gz
fc7fd3383caaf091bfc6fe313c6679b1d8858fe6e3049dce3c27afe4b974180dd51ebb2d8154288de1b26343653305a890105614355efdca514d67e0ae42bff9  01_fix_static_datadir_evaluation.patch
060ca4c2fbcd71b620f182ffe9c999a296236779605d110e578cacf2cbb4c6c551cf8d95901546ef455a402a4747e607e8ea7b54f1109fc3ccabc43cc4a8aad2  02_fix_418703_dont_use_abbreviated_sfnet_address.patch
3a72979c03a1b5135662ad5cedefd0d508001994e727a0820d628ff5ad2476c09befeb921b9562230fdec3db547e5eec4b301aa08430dd6c2ce2632624a1c375  03_fix_420153_filename_whitespace_handling.patch
af88626ca61847a25ef8c4cf8a09ea27cd1dce6510952e9629b704d3637097b10d85b9727e502dd7eecea1d2152a71cd26bf6abf4a8370eb8647258faa30be45  04_fix_442782_preprocessor_declaration_syntax.patch
ea9ed94190edb2ac2055694bb927457f94eeadf0eff340b9f5fdba6fad5b1dc0b9617829ce3470914cbe0ba0be145dfb000218d57f22ee767ebb8082d6c06bfb  05_fix_439214_error_on_missing_refentry.patch
a563b46e7eaa8052dc2daea6ad8b0f3b12780ef063fafd37a6345ae663f6229ccb0b52be5e7b1fd6584d31e56de89af391efb856bbabfed164353578b39fb458  06_fix_man_typo.patch"