aboutsummaryrefslogtreecommitdiffstats
path: root/community/entr/APKBUILD
blob: fd7cf8916cf8af7fb2c02097bfa1d62824beeed1 (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=3.8
pkgrel=1
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
}

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

check() {
	cd "$builddir"
	make test

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

sha512sums="8530a40eefc78571f3a2ab09f63d25d880167ec2d76e0c32fb25dce40e22b3f9f3b5f27874c1b95480206628e314298f001a4c0b487485ac88f2996002b41a2a  entr-3.8.tar.gz"