summaryrefslogtreecommitdiff
path: root/pcr/re2-hg/PKGBUILD
blob: 8143f9022425dc426f877e86a00c210c81948d4a (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
# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=re2-hg
pkgver=1
pkgrel=1
pkgdesc='Fast, safe and thread-friendly alternative to backtracking regular expression engines'
arch=('i686' 'x86_64' 'mips64el')
url='http://code.google.com/p/re2/'
license=('GPL2')
provides=('re2')
makedepends=('mercurial')

build() { 
  rm -rf re2
  hg clone https://re2.googlecode.com/hg re2

  cd re2

  sed -i 's_prefix=/usr/local_prefix=/usr_' Makefile

  make
}

package() {
  cd re2

  make DESTDIR=${pkgdir} install
}