aboutsummaryrefslogtreecommitdiffstats
path: root/testing/icmake/APKBUILD
blob: 6b2528e512b0150b8f74ef751855af7d105acb35 (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=icmake
pkgver=9.02.07
pkgrel=0
pkgdesc="Make utility using a C-like grammar"
url="https://fbb-git.github.io/icmake/"
arch="all"
license="GPL-3.0-or-later"
makedepends="bash"
subpackages="$pkgname-doc"
source="icmake-$pkgver.tar.gz::https://github.com/fbb-git/icmake/archive/$pkgver.tar.gz"
builddir="$srcdir/icmake-$pkgver/icmake"

prepare() {
	default_prepare

	cd "$builddir"
	sed -i '/^#define DOCDOCDIR/d' INSTALL.im
	echo '#define DOCDOCDIR "usr/share/doc/icmake"' >> INSTALL.im
}

build() {
	cd "$builddir"
	./icm_prepare /
	./icm_bootstrap x
}

check() {
	cd "$builddir"
	./tmp/usr/bin/icmake --version
	./tmp/usr/bin/icmbuild --version
}

package() {
	cd "$builddir"
	./icm_install strip all "$pkgdir"
}

sha512sums="9723dc9707e91fbd7cf075b461b0e6d9993891b6776be4b55265b5dce2359ae8232e9936ef6e0a9517783e652617851e7f9d5a9e58325b56da31239721054495  icmake-9.02.07.tar.gz"