void-packages/srcpkgs/skim/template

34 lines
971 B
Bash

# Template file for 'skim'
pkgname=skim
version=0.10.4
revision=1
build_style=cargo
short_desc="Fuzzy Finder in rust"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/lotabout/skim"
changelog="https://raw.githubusercontent.com/lotabout/skim/master/CHANGELOG.md"
distfiles="https://github.com/lotabout/skim/archive/refs/tags/v${version}.tar.gz"
checksum=eb5609842ad7c19b1267e77682ee5ae11aa8e84e46c27d9d198cc22d00c5e924
if [ "$XBPS_WORDSIZE" = 32 ]; then
make_check=no # disable tests on 32bit due to register exhaustion
fi
post_install() {
vbin bin/sk-tmux
vman man/man1/sk.1
vman man/man1/sk-tmux.1
vcompletion shell/completion.bash bash sk
vcompletion shell/completion.zsh zsh sk
vinstall shell/key-bindings.zsh 644 usr/share/skim
vinstall shell/key-bindings.bash 644 usr/share/skim
vinstall shell/key-bindings.fish 644 usr/share/skim
vinstall plugin/skim.vim 644 usr/share/vim/vimfiles/plugin
vlicense LICENSE
}