void-packages/srcpkgs/the_silver_searcher/template
2020-08-28 18:25:40 +02:00

24 lines
835 B
Bash

# Template file for 'the_silver_searcher'
pkgname=the_silver_searcher
version=2.2.0
revision=1
build_style=gnu-configure
make_check_target=test
hostmakedepends="pkg-config automake"
makedepends="pcre-devel zlib-devel liblzma-devel"
checkdepends="python3-cram"
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=d9621a878542f3733b5c6e71c849b9d1a830ed77cb1a1f6c2ea441d4b0643170
CFLAGS="-fcommon"
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
}