mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/libantlr3c to 3.5.2-3
This commit is contained in:
parent
61848679fd
commit
b85f9ad917
1 changed files with 23 additions and 20 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue