summaryrefslogtreecommitdiff
path: root/community/the_silver_searcher/PKGBUILD
blob: 731fe586fc7fce0fc4e1c327d815c76ee6d1264b (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
# $Id: PKGBUILD 107984 2014-03-20 12:49:08Z 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.21.0
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')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ggreer/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('ee921373e2bb1a25c913b0098ab946d137749b166d340a8ae6d88a554940a793')

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

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

  ./build.sh
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}

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