aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bmake/APKBUILD
blob: d6835a2753c63d3746f6607e818fb003fa40623f (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
# Maintainer: 
pkgname=bmake
pkgver=20180919
pkgrel=1
pkgdesc="Portable version of the NetBSD make build tool"
url="http://www.crufty.net/help/sjg/bmake.html"
arch=""
license="BSD"
subpackages="$pkgname-doc"
source="http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz
	install-sh.patch"

builddir="$srcdir/$pkgname"
options="!check" # Check automatically performed after build

build() {
	cd "$builddir"
	mkdir -p build
	cd build
	sh ../boot-strap --with-default-sys-path=/usr/share/mk
}

package() {
	cd "$builddir/build"
	sh ../boot-strap --prefix=/usr --with-mksrc=/usr/share/mk \
			--install-destdir="$pkgdir" op=install

	rm -rf "$pkgdir"/usr/share/man/cat1
	mkdir "$pkgdir"/usr/share/man/man1
	cp ../bmake.1 "$pkgdir"/usr/share/man/man1/
	mkdir -p "$pkgdir"/usr/share/licenses/"$pkgname"
	sed -e 3,69p -e d ../main.c >\
		"$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
}

sha512sums="5147513a0fd05b73ccd5ab057bcfd9e0c5d21681a5229d8ea870da7ad72fbd140b4b89245fdb2ef276152d237e478d64923623b99ce7bb85f746b01593d4fd1a  bmake-20180919.tar.gz
0de9022a2991c5ef02c09ab592a3e2d218cd0bbf58e54f21bc7694110f3dd9e4589bf2b3d241fd167fb220b425007863f20e71e141b4f65bf92d305ba94209da  install-sh.patch"