aboutsummaryrefslogtreecommitdiffstats
path: root/community/redo/APKBUILD
blob: 024ad9e03b85a445f3c5fc1b7333bdaa3a2364bb (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: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=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"

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

build() {
	./do build
}

check() {
	# Causes issues with the test suite
	unset CC CPPFLAGS CFLAGS 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"