aboutsummaryrefslogtreecommitdiffstats
path: root/community/vis/APKBUILD
blob: 5eb584514a10847cc9cabddf74e91c650488dfc6 (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
44
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=vis
pkgver=0.5
_testver=0.3
pkgrel=0
pkgdesc="Modern, legacy free, simple yet efficient vim-like editor"
url="https://github.com/martanne/vis"
arch="all"
license="ISC"
depends="!outils-vis lua5.3-lpeg"
depends_dev=""
makedepends="libtermkey-dev ncurses-dev acl-dev lua5.3-dev"
checkdepends="vim"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/martanne/$pkgname/archive/v$pkgver.tar.gz
	$pkgname-test-$pkgver.tar.gz::https://github.com/martanne/$pkgname-test/archive/v$_testver.tar.gz
	fortify-source.patch
	"
_testdir="$srcdir"/$pkgname-test-$_testver
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--enable-lua \
		--enable-acl
	make
}

check() {
	cp -r "$_testdir"/* "$builddir"/test/
	make -C "$builddir" test
}

package() {
	make -C "$builddir" DESTDIR="$pkgdir" install
}

sha512sums="e6ee7228c13d26342a4fb7884412c018118199a809cf18985eaa48232081fad0d7110364e55937e71e139bbe2cd24c2964d801e64f078d7ba7f2a999eeef72cc  vis-0.5.tar.gz
5f68a70cf6f1fb64f9b50c1a56940c966f205e51240c7dd1175bc15f3e42b475fb6842a53e36547113955c2efa359de0cc71e0800305b0e45881c319a14564e5  vis-test-0.5.tar.gz
fbcb897cb7d8cdfdc1f647691bbe23b383901a3dc9af97e2218cac18da72535ec4d138998d6016d5424e5882e15236fe13909509ca50c387227aecd2071acb9d  fortify-source.patch"