aboutsummaryrefslogtreecommitdiffstats
path: root/community/entr/APKBUILD
blob: bb97d7c9bdad011cd0ff17a753ab58de055e1eb0 (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.1
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="0a80aa9caa97f2603e43957b716bf5b5746cea8bfb2f2cc884aab8c97a34341d6223035fbb5d4bf86234ea1c9314c077cec9d59ba442a2730fcbd7151425a459  entr-4.1.tar.gz"