summaryrefslogtreecommitdiffstats
path: root/main/mdocml/APKBUILD
blob: 81ee7249166fe0e7f132ce79c6be0034fed6c57f (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
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=mdocml
pkgver=1.12.3
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="5e805fc6b261b8374ce21d191721bf80  mdocml-1.12.3.tar.gz
400673bfa64efd1ef446ea4421e25115  man.sh"
sha256sums="8ae7f7d471d52313707c4d78b25846dc4edca395b36ad20f24dead5399c13ee6  mdocml-1.12.3.tar.gz
da725bffcbc0d6be37d18470aee2407a068134ba120b436c6c4fc8c9a37e8e5d  man.sh"
sha512sums="41c7de3c04be9e792651aeb31b74d6fcbb1bfdee1af523ef725b5e10009c31ea89286bcd54c070758d6a80f026b9320cbf44de6159bea2a39ca88703401cdadb  mdocml-1.12.3.tar.gz
4461f703e83661d6b03ea94fa7dda1cb390579e3f1439450000b230d5a7d0e5c0c158364085ff40bf880fb46881d4e850774dd5471003c1383011bdff6088abe  man.sh"