~xdavidwu/apkbuilds

65510502ae174e6dbb8a2c6f896accaade2ca91f — xdavidwu 2 years ago 6927a90
nvimpager: add
1 files changed, 30 insertions(+), 0 deletions(-)

A nvimpager/APKBUILD
A nvimpager/APKBUILD => nvimpager/APKBUILD +30 -0
@@ 0,0 1,30 @@
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=nvimpager
pkgver=0.10.4
pkgrel=0
pkgdesc="Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting"
url="https://github.com/lucc/nvimpager"
arch="all"
license="BSD-2-Clause"
depends="neovim"
makedepends="scdoc"
checkdepends="lua-busted"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/lucc/nvimpager/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make PREFIX=/usr nvimpager.configured nvimpager.1
}

check() {
	make test
}

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

sha512sums="
3a7e405cd426c7a5623fd249f15bc4242dc9804f4c0c049c11bcddb16f5a717907f3c4dd942a748a7ba6122fb29396b70d65eb225f71b61944ec164360356bf1  nvimpager-0.10.4.tar.gz
"