community/libantlr3c to 3.5.2-3

This commit is contained in:
Kevin Mihelich 2019-02-25 13:47:42 +00:00
parent 61848679fd
commit b85f9ad917

View file

@ -1,9 +1,9 @@
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: 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>
# Contributor: Daniel Nagy <danielnagy@gmx.de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --disable-abiflags
@ -11,22 +11,21 @@
pkgname=libantlr3c
pkgver=3.5.2
pkgrel=2
pkgdesc="C runtime for the ANTLR parsing library"
url="http://www.antlr.org/"
arch=("i686" "x86_64")
license=("BSD")
depends=('bash')
makedepends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/antlr/antlr3/archive/$pkgver.tar.gz"
pkgrel=3
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)
sha256sums=('529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f'
'a40e2e78d60764dcc56478e773152273daf78bd44d428409f7ed9290d6ba4702')
md5sums=('SKIP'
'f936f142053c03ec57a0be95b7b8fe0c')
prepare() {
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
cd antlr3/runtime/C
patch -p1 -i ${srcdir}/antlr-c-3.3-cflags.patch
cat <<EOF >antlr3config.h.in
cat <<EOF> antlr3config.h.in
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
@ -43,15 +42,19 @@ EOF
}
build() {
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
[ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
cd antlr3/runtime/C
[[ $CARCH =~ arm.* ]] && _cfgopt=--disable-abiflags
./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt}
make
}
package() {
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
make install DESTDIR="${pkgdir}"
install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
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: