aboutsummaryrefslogtreecommitdiffstats
path: root/community/heirloom-doctools/APKBUILD
blob: 93e068ee9c69b539fcc7c247d90b9989c931b2dc (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=heirloom-doctools
pkgver=160308
pkgrel=7
pkgdesc="The Heirloom Documentation Tools"
url="http://n-t-roff.github.io/heirloom/doctools.html"
arch="all"
license="CDDL"
depends="!coreutils !util-linux !mdocml-soelim"
depends_dev=""
makedepends="flex bison"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/n-t-roff/${pkgname}/archive/${pkgver}.tar.gz
	fix-bison-parsing.patch"

_makeargs="
	CC="${CC:-gcc}" \
	CCC="${CCX:-g++}" \
	EUC=-DEUC \
	STRIP=true \
	RANLIB=ranlib \
	INSTALL=install \
	BINDIR=/usr/bin \
	MANDIR=/usr/share/man \
	LIBDIR=/usr/lib/$pkgname \
	REFDIR=/usr/lib/$pkgname/reftools \
	MACDIR=/usr/share/$pkgname/tmac \
	FNTDIR=/usr/share/$pkgname/font \
	TABDIR=/usr/share/$pkgname/nterm \
	HYPDIR=/usr/share/$pkgname/hyphen \
	PUBDIR=/usr/share/$pkgname/pub \
	PSTDIR=/usr/share/$pkgname/font/devpost/postscript
"

build() {
	# Unfortunately parallel build isn't supported.
	make -j1 $_makeargs -C "$builddir" || return 1
}

package() {
	# Unfortunately parallel install isn't supported.
	make -j1 ROOT="$pkgdir" $_makeargs \
		-C "$builddir" install || return 1

	# Don't conflict with mdocml-doc
	rm -f "$pkgdir"/usr/share/man/man1/soelim.1
}

sha512sums="46a5b2969a807abeb4a45eb63db918c903fe02226edddccabc4eabc7e6ad77dd1c0cf633fe55981f16907cb96f3a94a769383966d2f5f5dcde276734f7ad00d7  heirloom-doctools-160308.tar.gz
fd3bf026749d960c63e3a0b8dbb66c7aa1035f4a314a256e7b8794336b48901452fce6a78b54daf4a5eaf909ef27759c1e58ec59391af75bf083e54a2da7b138  fix-bison-parsing.patch"