aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoc/APKBUILD
blob: 0564df4325b89e7e11059227155332b86612267b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoc
pkgver=8.6.9
pkgrel=1
pkgdesc="Text based documentation"
url="http://www.methods.co.nz/asciidoc/"
arch="noarch"
license="GPL2"
depends="python libxml2-utils docbook-xsl"
makedepends=""
install=""
subpackages="$pkgname-doc $pkgname-vim"
source="http://sourceforge.net/projects/asciidoc/files/asciidoc/$pkgver/asciidoc-$pkgver.tar.gz"

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

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

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

vim() {
	depends=""
	pkgdesc="Vim syntax for $pkgname"
	arch="noarch"

	install -Dm644 "$_builddir"/vim/syntax/$pkgname.vim \
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}

md5sums="c59018f105be8d022714b826b0be130a  asciidoc-8.6.9.tar.gz"
sha256sums="78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0  asciidoc-8.6.9.tar.gz"
sha512sums="1984482010dbd35c3a1def67f4915ce83ecfc29a7463f84aa312107d7a9ff647978f57615462c65e885bea424eed89a212df728cc3acd3c63df1c763dfa5e955  asciidoc-8.6.9.tar.gz"