aboutsummaryrefslogtreecommitdiffstats
path: root/main/docbook2x/APKBUILD
blob: e0024ccc309fd3cbf3e5e3858303d658643ad431 (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
59
60
61
# 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
}

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"