summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa73541ea573d98a3be5b2b8f980584446e197c9 (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
35
# Maintainer:  Ilya Terentyev <bacondropped@gmail.com>
# Contributor: Zachary Lund <admin@computerquip.com>
# Contributor: 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-dev
pkgver=7.0.0.10
pkgrel=2
pkgdesc="Compiles finite state machines from regular languages into executable C, C++, Objective-C, C#, ASM, D, Go, Java, Ruby, OCaml, Crack, Rust or Julia code."
arch=('i686' 'x86_64')
url="http://www.complang.org/ragel/"
license=('GPL')
makedepends=('colm-dev>=0.13.0.5' 'kelbt')
depends=('gcc-libs')
conflicts=('ragel')
source=("https://www.colm.net/files/ragel/ragel-$pkgver.tar.gz")
md5sums=('7e00ad44c993af7ed7ee299add06334b')

build() {
  cd "$srcdir/ragel-$pkgver"

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR="$pkgdir/" install
  install -m0644 -D ragel.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/ragel.vim
}