aboutsummaryrefslogtreecommitdiffstats
path: root/community/redo/APKBUILD
blob: 4b378433ea04e41a3e96425a4c2acf01b2d30d3d (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.41
pkgrel=3
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"
subpackages="$pkgname-doc"
source="https://github.com/apenwarr/redo/archive/redo-${pkgver}.tar.gz
	builder-no-tty.patch::https://github.com/apenwarr/redo/commit/c18c4b92c9a2b23f0ce06d9aebf151bdaded6dd1.patch"
	# Above patch can be removed once a new version has been released.

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

build() {
	./do build
}

check() {
	./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="94e4414a2f8120e5d4a949461734ed69dc2f39edfb7929d2efff83041ac0b941e037359ccfafcb4eff760608274e32c579df56d58fdb67b13b8a26eb1945b0d0  redo-0.41.tar.gz
ede8020f488023f4419dd044c689e76566493573356a224c56048caadf1e34ddb33e9f676085f92479515a64bedbbafa13cee286caa2e09aa56b3753762a0e65  builder-no-tty.patch"