aboutsummaryrefslogtreecommitdiffstats
path: root/main/mdocml/APKBUILD
blob: 68b10ec7d1803094b0db0469343a7cf03fa3e4ce (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
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=mdocml
pkgver=1.12.0
pkgrel=0
pkgdesc="mdoc/man compiler"
url="http://mdocml.bsd.lv/"
arch="all"
license="BSD"
depends=
makedepends=
install=
subpackages="$pkgname-doc $pkgname-dev $pkgname-man"
source="http://mdocml.bsd.lv/snapshots/mdocml-$pkgver.tar.gz man.sh"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make PREFIX=/usr DBBIN= || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr MANDIR=/usr/share/man DBBIN= \
		EXAMPLEDIR=/usr/share/doc/mdocml/examples install
}

man() {
	arch="noarch"
	cd "$srcdir"
	depends="mdocml"
	install -Dm 755 man.sh "$subpkgdir"/usr/bin/man || return 1
}

md5sums="5604720728d991669e84e0b3a698e50b  mdocml-1.12.0.tar.gz
400673bfa64efd1ef446ea4421e25115  man.sh"