summaryrefslogtreecommitdiff
path: root/community/the_silver_searcher/PKGBUILD
blob: b693e1d55d4ce9610bc48783724d5b10de706076 (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
33
34
35
# $Id: PKGBUILD 99585 2013-10-30 09:27:44Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Jeff Horelick <jdhore1@gmail.com>
# Contributor: skydrome <skydrome@i2pmail.org>

pkgname=the_silver_searcher
pkgver=0.18
pkgrel=1
pkgdesc='Code searching tool similar to Ack, but faster'
url='https://github.com/ggreer/the_silver_searcher'
license=('Apache')
depends=('pcre' 'zlib' 'xz')
arch=('x86_64' 'i686' 'mips64el')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ggreer/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('9d3cdb7ab42308351f951adf1d149241b25f27d676322d96cdb215e4a0d90ea2')

prepare() {
  cd "$pkgname-$pkgver"
  
  sed -i 's:configure:configure --prefix=/usr:' build.sh
}

build() {
  cd "$pkgname-$pkgver"

  ./build.sh
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: