# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=re2c pkgver=0.13.7.5 pkgrel=0 pkgdesc="A tool for writing fast and flexible scanners in C from regular expressions" url="http://www.re2c.org" arch="all" license="Public Domain" depends= makedepends= install= subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # As Gentoo build, fix perms chmod -R u+rw . } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="1cb302b45ad1f4657c112e5b63735e67 re2c-0.13.7.5.tar.gz" sha256sums="d58afd50579e4564c9fc4218aec860d41b88583ace2ae0a23497b49108f1b461 re2c-0.13.7.5.tar.gz" sha512sums="71abaec58ac02de6f13cfffec6965d3443c44a72425c4ce8873915daddf077f7f484c2dc702e6533bab2d2f0ca72b34e354771120a4788d9a456b3b3393b6e22 re2c-0.13.7.5.tar.gz"