void-packages/srcpkgs/the_silver_searcher/template

21 lines
765 B
Bash

# Template file for 'the-silver-searcher'
pkgname=the_silver_searcher
version=2.1.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config automake"
makedepends="pcre-devel zlib-devel liblzma-devel"
short_desc="Code-searching tool similar to ack, but faster"
maintainer="Jan S. <jan.schreib@gmail.com>"
license="Apache-2.0"
homepage="https://geoff.greer.fm/ag/"
distfiles="https://geoff.greer.fm/ag/releases/${pkgname}-${version}.tar.gz"
checksum=d4652bd91c3a05e87a15809c5f3f14ad2e5e1f80185af510e3fa4ad2038c15d4
post_install() {
rm ${DESTDIR}/usr/share/the_silver_searcher/completions/ag.bashcomp.sh
vinstall ag.bashcomp.sh 644 usr/share/bash-completion/completions ag
vinstall _the_silver_searcher 644 usr/share/zsh/site-functions
vlicense NOTICE
}