mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/libantlr3c to 3.5.2-1
This commit is contained in:
parent
5456ff1a02
commit
c273c601d6
1 changed files with 22 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
||||||
# - patch to build with environment's CFLAGS
|
# - patch to build with environment's CFLAGS
|
||||||
|
|
||||||
pkgname=libantlr3c
|
pkgname=libantlr3c
|
||||||
pkgver=3.4
|
pkgver=3.5.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="C runtime for the ANTLR parsing library"
|
pkgdesc="C runtime for the ANTLR parsing library"
|
||||||
url="http://www.antlr.org/"
|
url="http://www.antlr.org/"
|
||||||
|
@ -18,19 +18,32 @@ arch=("i686" "x86_64")
|
||||||
license=("BSD")
|
license=("BSD")
|
||||||
depends=('bash')
|
depends=('bash')
|
||||||
makedepends=()
|
makedepends=()
|
||||||
source=(http://www.antlr3.org/download/C/${pkgname}-${pkgver}.tar.gz
|
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)
|
||||||
md5sums=('08b1420129d5dccd0f4461cedf2a0d7d'
|
sha256sums=('529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f'
|
||||||
'f936f142053c03ec57a0be95b7b8fe0c')
|
'a40e2e78d60764dcc56478e773152273daf78bd44d428409f7ed9290d6ba4702')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${pkgname}-${pkgver}"
|
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||||
patch -p1 -i ../antlr-c-3.3-cflags.patch
|
patch -p1 -i ${srcdir}/antlr-c-3.3-cflags.patch
|
||||||
autoreconf -fi
|
cat <<EOF >antlr3config.h.in
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/tcp.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <antlr3defs.h>
|
||||||
|
EOF
|
||||||
|
aclocal
|
||||||
|
libtoolize
|
||||||
|
automake --add-missing
|
||||||
|
autoconf
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||||
[ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
|
[ "$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}
|
||||||
|
@ -38,7 +51,7 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||||
make install DESTDIR="${pkgdir}"
|
make install DESTDIR="${pkgdir}"
|
||||||
install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue