aboutsummaryrefslogtreecommitdiffstats
path: root/community/entr/APKBUILD
blob: 880ebcfab615f840799e152298c334092618d4b4 (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.7
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"
source="http://entrproject.org/code/$pkgname-$pkgver.tar.gz
	fix-tests.patch
	"
builddir="$srcdir/eradman-$pkgname"

prepare() {
	# Top-level directory inside the tar archive contains SHA of a commit...
	cd "$srcdir"
	mv eradman-$pkgname-* "$builddir"

	default_prepare
}

build() {
	cd "$builddir"
	./configure || return 1
	CFLAGS="-static" make test || return 1
}

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

check() {
	cd "$builddir"
	make regress || return 1
}

sha512sums="a1687ec2da99f65fba3f668e41345ba76cb8c87cc2343d98c0dcc0ac0dedeb40cd8b5fd9aa3eba1dee8add94585de939864633bf0020cea1043699019dfa15fe  entr-3.7.tar.gz
76ff681ba95fd373f3fe466e1e63fdabf97e16bfe054710b86f7f76c69c45f3fc84ecbf940fa8603740093817e39b35d0af2c3fef1a66a2eed1c3ef442dd207f  fix-tests.patch"