mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
nvimpager: update to 0.10.2.
This commit is contained in:
parent
fc1c011b8d
commit
262932da57
1 changed files with 4 additions and 25 deletions
|
@ -1,37 +1,16 @@
|
|||
# Template file for 'nvimpager'
|
||||
pkgname=nvimpager
|
||||
version=0.9
|
||||
version=0.10.2
|
||||
revision=1
|
||||
# In pre_build, date is the date of the last commit in the nvimpager repo.
|
||||
# It should be changed when updating to a new version.
|
||||
create_wrksrc=true
|
||||
build_wrksrc="${pkgname}-${version}"
|
||||
build_style=gnu-makefile
|
||||
make_build_target="nvimpager.configured"
|
||||
make_build_args="PREFIX=/usr"
|
||||
hostmakedepends="neovim lowdown"
|
||||
hostmakedepends="neovim scdoc"
|
||||
depends="neovim>=0.4.0 bash"
|
||||
short_desc="Wrapper to use neovim as a pager to view manpages, diffs, etc"
|
||||
maintainer="Adrian Herath <adrianisuru@gmail.com>"
|
||||
license="BSD-2-Clause"
|
||||
homepage="https://github.com/lucc/nvimpager"
|
||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||
checksum="ae2d99d59bd43d96e12a07ffa32c3f120636163308c2b6c1da43052bc8bce1a0"
|
||||
|
||||
post_patch() {
|
||||
# replace pandoc with lowdown
|
||||
vsed -e \
|
||||
"s/pandoc .*/lowdown -Tman -m 'date: 2020-12-13' -m 'source: Version v${version}' -s -o nvimpager.1 $</" \
|
||||
-i makefile
|
||||
|
||||
# remove YAML borders, not supported by lowdown
|
||||
vsed -e '/^---/d' -e '/^\.\.\./d' -i nvimpager.md
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
# avoid running the rule to generate this file
|
||||
touch metadata.yaml
|
||||
}
|
||||
distfiles="https://github.com/lucc/nvimpager/archive/v${version}.tar.gz"
|
||||
checksum=58d77fe301a6451098eef2677011cc99138c3735b34859a17cbaa6caba7e0ef4
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Add table
Reference in a new issue