aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoc/APKBUILD
blob: 5637fde52c441f716bc6fd8fc785f18bbae288c4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoc
pkgver=8.6.10
pkgrel=1
_commit=986f99d743d0b6ddc2014bdc8dcfa991ab9b4863
pkgdesc="Text based documentation"
url="http://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 $pkgname-vim::noarch"
source="$pkgname-$_commit.tar.gz::https://github.com/asciidoc/asciidoc-py3/archive/$_commit/asciidoc-py3-$_commit.tar.gz
	asciidoc-python3.patch
	asciidoc-python3-a2x-decode-fix.patch
	asciidoc-python3-deprecation-warning.patch
	"
builddir="$srcdir/asciidoc-py3-$_commit"

prepare() {
	default_prepare
	autoreconf -fi
}

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

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

vim() {
	pkgdesc="Vim syntax for $pkgname"
	depends=""
	install -Dm644 "$builddir"/vim/syntax/$pkgname.vim \
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}

sha512sums="758362cac485cbe4fd504224f7a8d24d20955464dd56af258e9a70deac8dc89d0f07f8e4567cfbbd3e1cbe6336704e9d12590bade662dd5bf228ea7e611676d1  asciidoc-986f99d743d0b6ddc2014bdc8dcfa991ab9b4863.tar.gz
331d7c1a6e8ec6bdd11c2998c0d76285e282914ca12a0de79e04199926f7fd10a7b24a3602fd01d3cbdf7fb8f718000eb8d5063236354c894a9187ab54194aa6  asciidoc-python3.patch
dfa4b288c894373aecebafbadf726aadcb51cf4578c0903433936c114a587b086695f85c97bf712140d94adc916c83d0c861c5af8cf15195a3364ca8e4e8414e  asciidoc-python3-a2x-decode-fix.patch
de4687009f4c5dd4d3f7727634e6577d1e6df3f4c812dd4d4c9828a31d529b8e520ae43a53a63cb4c154664d51d5bad96728f05feb9e9ec0889849903cae739e  asciidoc-python3-deprecation-warning.patch"