aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yodl/APKBUILD
blob: da3c18096a667daf8fa0aba470bf638491f23f33 (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
# Contributor: Shiz <hi@shiz.me>
# Maintainer: Shiz <hi@shiz.me>
pkgname=yodl
pkgver=4.01.00
pkgrel=0
pkgdesc="Pre-document language and tools to process it"
url="https://fbb-git.github.io/yodl/"
arch="all"
license="GPL2"
makedepends="icmake bash perl flex bison"
subpackages="$pkgname-doc"
source="yodl-$pkgver.tar.gz::https://github.com/fbb-git/yodl/archive/$pkgver.tar.gz"
builddir="$srcdir/yodl-$pkgver/yodl"

prepare() {
	cd "$builddir"
	sed -i 's!DOCDOC\s*=.*$!DOCDOC = BASE + "/share/doc/yodl";!g' INSTALL.im
}

build() {
	cd "$builddir"
	local module; for module in programs macros man; do
		./build $module
	done
}

check() {
	cd "$builddir"
	# yodl likes to exit with a non-zero exit status with --version.
	./tmp/install/usr/bin/yodl --version | grep -q 'yodl version'
}

package() {
	cd "$builddir"
	local module; for module in programs macros man; do
		./build install $module "$pkgdir"
	done
}

sha512sums="f195dec8e03b83561b47f9bd00fbb0fe711bbc254c32413d748587d8bf3848e050b90a2140977bec5a335021b2ef49ec5a6b0ca89f1649def495d81c3e7b437f  yodl-4.01.00.tar.gz"