summaryrefslogblamecommitdiff
path: root/user/the_silver_searcher/APKBUILD
blob: e906445e66c7d2f002ecf1cc889a1709d04f97c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11









                                                                    
                   
                                      



                                                                              









                                         


                 


                                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=the_silver_searcher
pkgver=2.2.0
pkgrel=0
pkgdesc="Tool for very fast searching of text in documents and code"
url="https://geoff.greer.fm/ag/"
arch="all"
options="!check"  # Tests are not shipped in the release tarball...
license="Apache-2.0"
depends=""
checkdepends="cram"
makedepends="pcre-dev xz-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://geoff.greer.fm/ag/releases/the_silver_searcher-$pkgver.tar.gz"
builddir="$srcdir/the_silver_searcher-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="89d4e4f7f34c0d57aa880e7c3466f0373b961744a89ad30541e89e2d614322ab46c8044ec458406a117f74b0fea14cd3063fa4e0624a96526aa23eaccd6f1141  the_silver_searcher-2.2.0.tar.gz"