[arch-commits] Commit in libantlr3c/trunk (PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Mon Aug 14 10:05:05 UTC 2017
Date: Monday, August 14, 2017 @ 10:05:05
Author: spupykin
Revision: 250265
upgpkg: libantlr3c 3.5.2-1
Modified:
libantlr3c/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++++++++-----
1 file changed, 23 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-14 10:03:40 UTC (rev 250264)
+++ PKGBUILD 2017-08-14 10:05:05 UTC (rev 250265)
@@ -6,7 +6,7 @@
# Maintainer: Daniel Nagy < danielnagy at gmx de>
pkgname=libantlr3c
-pkgver=3.4
+pkgver=3.5.2
pkgrel=1
pkgdesc="C runtime for the ANTLR parsing library"
url="http://www.antlr.org/"
@@ -14,11 +14,29 @@
license=("BSD")
depends=('bash')
makedepends=()
-source=(http://www.antlr3.org/download/C/${pkgname}-${pkgver}.tar.gz)
-md5sums=('08b1420129d5dccd0f4461cedf2a0d7d')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/antlr/antlr3/archive/$pkgver.tar.gz")
+sha256sums=('529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f')
+prepare() {
+ cd "${srcdir}/antlr3-${pkgver}/runtime/C"
+ 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() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/antlr3-${pkgver}/runtime/C"
[ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt}
make
@@ -25,7 +43,7 @@
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/antlr3-${pkgver}/runtime/C"
make install DESTDIR="${pkgdir}"
install -Dm0644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
More information about the arch-commits
mailing list