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