aboutsummaryrefslogtreecommitdiffstats
path: root/community/entr/APKBUILD
blob: ceb7e92d9c38926576bbd9d190add7653b6f107b (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
43
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=entr
pkgver=4.0
pkgrel=0
pkgdesc="Event Notify Test Runner: Run arbitrary commands when files change"
url="http://entrproject.org"
arch="all"
license="ISC BSD"
subpackages="$pkgname-doc"
makedepends="vim mercurial file util-linux"
checkdepends="bash tmux"
source="http://entrproject.org/code/$pkgname-$pkgver.tar.gz
	"
builddir="$srcdir/eradman-$pkgname"

unpack() {
	default_unpack

	# Top-level directory inside the tar archive contains SHA of a commit...
	mv "$srcdir"/eradman-$pkgname-* "$builddir"
}

build() {
	cd "$builddir"
	./configure
	make
}

check() {
	cd "$builddir"
	make test

	# FIXME: The tmux invocation in the functional tests blocks the builders
	# make regress
}

package() {
	cd "$builddir"
	PREFIX="$pkgdir/usr" make install
}

sha512sums="d803c27441448374a866636e0e592a8395488e162e2e8c031aafec3457d10041dc52e10d06cc1e209cd86f69ca021171ef105056206b9afe603a89958eef2707  entr-4.0.tar.gz"