aboutsummaryrefslogtreecommitdiffstats
path: root/testing/neatvi/APKBUILD
blob: acb1624224bc83e9548b81207cedf513b30920cf (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
# Maintainer: Alex Raschi <raschi.alex@gmail.com>
pkgname=neatvi
pkgver=06
pkgrel=0
pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
url="https://github.com/aligrudi/neatvi"
arch="all"
license="ISC" # vi.c
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/$pkgname/archive/$pkgver.tar.gz
	conf.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	local pkgbin="$pkgdir"/usr/bin
	cd "$builddir"
	mkdir -p "$pkgbin"
	mv vi "$pkgbin"/neatvi
}

doc() {
	local pkgdoc="$subpkgdir"/usr/share/doc/"$pkgname"
	cd "$builddir"
	mkdir -p "$pkgdoc"
	mv README "$pkgdoc"

	default_doc
}

sha512sums="ff5850fc736afb33f57bcf738fc6eab346785caa5eff81fac567248eb0bede973731ca1791651d73d0157df170b6f07df3cd05ee4d8a6eb2090d51f92460d2b9  neatvi-06.tar.gz
d5538cf2bfb98b93d3661f686540580f754cd5fca641893b58cf80312ec703aa332601f68258335a71bdeb72356148a75db22ae139e05c04c060cfcb31f2fafd  conf.patch"