summaryrefslogtreecommitdiff
path: root/community/libantlr3c/PKGBUILD
blob: ba9380bfecf79ffab299533d0868c6b7a0851a2c (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
# $Id: PKGBUILD 107165 2014-03-13 17:21:44Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# Contributor: Alexis Robert <alexis.robert@gmail.com>
# Maintainer: Daniel Nagy < danielnagy at gmx de>

pkgname=libantlr3c
pkgver=3.4
pkgrel=1
pkgdesc="C runtime for the ANTLR parsing library"
url="http://www.antlr.org/"
arch=("i686" "x86_64")
license=("BSD")
depends=('bash')
makedepends=()
source=(http://www.antlr3.org/download/C/${pkgname}-${pkgver}.tar.gz)
md5sums=('08b1420129d5dccd0f4461cedf2a0d7d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  [ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
  ./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt}
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
  install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}