aboutsummaryrefslogtreecommitdiffstats
path: root/community/apenwarr-redo/APKBUILD
blob: d4e70967674a0e512cb641b8b97061707e658351 (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=apenwarr-redo
pkgver=0.42
pkgrel=0
pkgdesc="Smaller, easier, more powerful, and more reliable than make"
url="https://redo.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="python2"
makedepends="perl"
checkdepends="cpio"
subpackages="$pkgname-doc"
source="https://github.com/apenwarr/redo/archive/redo-$pkgver.tar.gz"
provides="redo"
provider_priority=50

builddir="$srcdir/redo-redo-$pkgver"

build() {
	./do build
}

check() {
	# Causes issues with the test suite
	unset CC CPPFLAGS CFLAGS CXX CXXFLAGS LDFLAGS
	./do test
}

package() {
	DESTDIR="$pkgdir" PREFIX="/usr" ./do install
}

cleanup_srcdir() {
	# Test suite changes some files to read-only, resulting in errors on
	# cleanup.
	[ -e "$srcdir" ] && chmod -R a+w "$srcdir"

	default_cleanup_srcdir
}

sha512sums="41b8417136f98d12edf3c62f027f2459ae3fb92f6c5464553d79c3a52344de57220a5c64b565118da0a99c1544eaa153a468ffcdcfbf7193c76c896bcd40e900  redo-0.42.tar.gz"