# Maintainer: Alexander F. Rødseth # Contributor: Sergej Pupykin # Contributor: Mathieu Clabaut # Contributor: Artyom Smirnov # Contributor: Alexis Robert # Contributor: Daniel Nagy # ALARM: Kevin Mihelich # - configure with --disable-abiflags # - patch to build with environment's CFLAGS pkgname=libantlr3c pkgver=3.5.3 pkgrel=1 pkgdesc='ANother Tool for Language Recognition' url='https://www.antlr3.org' arch=(x86_64) license=(BSD) makedepends=(git) source=("git+https://github.com/antlr/antlr3.git#tag=$pkgver" antlr-c-3.3-cflags.patch) md5sums=('SKIP' 'f936f142053c03ec57a0be95b7b8fe0c') prepare() { cd antlr3/runtime/C patch -p1 -i ${srcdir}/antlr-c-3.3-cflags.patch cat < antlr3config.h.in #include #include #include #include #include #include #include #include EOF aclocal libtoolize automake --add-missing autoconf } build() { cd antlr3/runtime/C [[ $CARCH =~ arm.* ]] && _cfgopt=--disable-abiflags ./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt} make } package() { cd antlr3/runtime/C DESTDIR="$pkgdir" make install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } # getver: antlr3.org # vim: ts=2 sw=2 et: