aboutsummaryrefslogtreecommitdiffstats
path: root/main/the_silver_searcher/APKBUILD
blob: 6e345dfa1e6d7d16f240e9de2fb4d9b10ac5841f (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=the_silver_searcher
pkgver=0.32.0
pkgrel=0
pkgdesc="A code searching tool similar to ack, with a focus on speed."
url="http://geoff.greer.fm/ag/"
arch="all"
license="Apache"
depends=""
makedepends="pcre-dev xz-dev"
subpackages="$pkgname-doc"
source="http://geoff.greer.fm/ag/releases/the_silver_searcher-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build () {
	cd $srcdir/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="3fdfd5836924246073d5344257a06823  the_silver_searcher-0.32.0.tar.gz"
sha256sums="944ca77e498f344b2bfbd8df6d5d8df7bbc1c7e080b50c0bab3d1a9a55151b60  the_silver_searcher-0.32.0.tar.gz"
sha512sums="a6ad5c4c3889344d5d0c71fc63614f55acd60bd20daa894c68757fc1ffd4f60b1f81308a09c1822ac0bcf110cb3338731ff1159787352f181e824bd68cf74967  the_silver_searcher-0.32.0.tar.gz"