summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0f26fd5927dc862b6ea7f3902c67dc4551213d7 (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
# Maintainer: Pascal Mehnert <pascalmehnert@posteo.de>

pkgname=nvimpager-git
pkgver=0.12.0.r9.gbdb1c64
pkgrel=1
pkgdesc="Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting"
arch=('any')
url='https://github.com/lucc/nvimpager'
license=('BSD')
depends=('neovim>=0.9.0' 'bash')
makedepends=('git' 'scdoc')
checkdepends=('busted' 'procps-ng')
conflicts=('nvimpager')
provides=('nvimpager')
source=('git+https://github.com/lucc/nvimpager.git#branch=main')
sha256sums=('SKIP')

pkgver() {
    cd nvimpager/
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

package() {
    cd nvimpager/

    make PREFIX="/usr" DESTDIR="${pkgdir}" install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/vimpager/LICENSE"
}

check() {
    cd nvimpager/
    make test
}