summaryrefslogtreecommitdiff
path: root/user/the_silver_searcher/APKBUILD
blob: 7c504dc9e09ad21b1b39c47d386f0f1e1b1097e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=the_silver_searcher
pkgver=2.2.0
pkgrel=1
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
	pipe-symlink.patch
	pattern-fix.patch
	no-common.patch
	"

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
4c7af6c22cb01d09070d642c2e1ace969ddbfc60750dba7ffa2f38cb960b68c01ffaa0edbbafe11cbc30805bd8f845bae1ea7863b181e55fc4263b4fe0b95fb4  pipe-symlink.patch
8cce44cc3d1b9732fa616ad34ccca3292dddbc45280c64434aaae5ce5bb14cb9847fb4ff584b3042215d3adef6460c6f74a64f6eabe583fa440d89fc74b39feb  pattern-fix.patch
b7d0c96bfd8a9984b0082fac2530826cd3fb5f98ca957c03d628ed7f908f5e27108a18c00813fcb498ec12aa47b82fffc1d48b9d0ffaa5dd36960d7063c09a9e  no-common.patch"