summaryrefslogtreecommitdiff
path: root/community/ragel/PKGBUILD
blob: 5f3a729784d7c97c6220fc81d2acb4d9f443fb01 (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
# $Id: PKGBUILD 60639 2011-12-16 00:03:11Z tredaelli $
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Michael P <ptchinster@archlinux.us>
# Contributor: Roberto Alsina <ralsina@kde.org>
# Contributor: Will Chappell <mr.chapendi@gmail.com>
# Contributor: Jesse Young <jesse.young@gmail.com>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=ragel
pkgver=6.7
pkgrel=1
pkgdesc="Compiles finite state machines from regular languages into executable C, C++, Objective-C, or D code."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.complang.org/ragel/"
license=('GPL')
depends=('gcc-libs')
source=("http://www.complang.org/$pkgname/$pkgname-$pkgver.tar.gz"
	"ragel-6.7-gcc-4.7.patch")
md5sums=('f4423e0d8a6538dd4e61498fcfad3cec'
	 'bcbc047873e09eef04900142fefa75f1')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i ${srcdir}/ragel-6.7-gcc-4.7.patch
  ./configure --prefix=/usr
  make
}

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

  make DESTDIR="$pkgdir/" install
}