summaryrefslogtreecommitdiffstats
path: root/abs/extra/re2c/PKGBUILD
blob: a578a6bde50d8f95849ec1d5945a541f99e9ac96 (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$
# Maintainer:
# Contributor: nut543 <kfs1@online.no>
# Contributor: Dale Blount <dale@archlinux.org>

pkgname=re2c
pkgver=1.0.2
pkgrel=1
arch=(i686 x86_64)
depends=(gcc-libs)
pkgdesc='A tool for generating C-based recognizers from regular expressions'
url='http://re2c.org'
license=(GPL)
source=(re2c-$pkgver.tar.gz::https://github.com/skvadrik/re2c/archive/$pkgver.tar.gz)
sha1sums=('d01b4d3c353bb32d5e4a1a61a377e0f4f03d4741')

build() {
  cd $pkgname-$pkgver/re2c
#  ./autogen.sh
  autoreconf -i -W all
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver/re2c
  make tests
}

package() {
  cd $pkgname-$pkgver/re2c
  make DESTDIR="$pkgdir" install
}