aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoc/APKBUILD
blob: c1f22d4d0199037ad7feb515cc1c83f2018b5291 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoc
pkgver=9.0.5
pkgrel=0
pkgdesc="Text based documentation"
url="https://asciidoc.org/"
arch="noarch"
license="GPL-2.0-or-later and GPL-1.0-or-later"
depends="python3 libxml2-utils docbook-xsl"
makedepends="autoconf automake"
subpackages="$pkgname-doc"
# There is a upstream-created tarball but it has depth=1 which unpacks
# everything into $srcdir instead of $srcdir/$pkgname-$pkgver
source="$pkgname-$pkgver.tar.gz::https://github.com/asciidoc/asciidoc-py3/archive/$pkgver.tar.gz"
builddir="$srcdir/asciidoc-py3-$pkgver"

replaces="$pkgname-vim"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5b79d74c1efd43a960e8a415d3a68f26dcd3a3eee748b830101cec69475b0af40de7ad190ae105cade8ee558a59a643d04f38c1be490d253e3a6740c347d94e3  asciidoc-9.0.5.tar.gz"