[arch-commits] Commit in libantlr3c/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Tue May 29 09:05:33 UTC 2018


    Date: Tuesday, May 29, 2018 @ 09:05:32
  Author: arodseth
Revision: 333154

upgpkg: libantlr3c 3.5.2-1

Modified:
  libantlr3c/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-29 09:05:07 UTC (rev 333153)
+++ PKGBUILD	2018-05-29 09:05:32 UTC (rev 333154)
@@ -1,25 +1,25 @@
 # $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor: Mathieu Clabaut <mathieu.clabaut at gmail.com>
 # Contributor: Artyom Smirnov <smirnoffjr at gmail.com>
 # Contributor: Alexis Robert <alexis.robert at gmail.com>
-# Maintainer: Daniel Nagy < danielnagy at gmx de>
+# Contributor: Daniel Nagy <danielnagy at gmx.de>
 
 pkgname=libantlr3c
 pkgver=3.5.2
 pkgrel=1
-pkgdesc="C runtime for the ANTLR parsing library"
-url="http://www.antlr.org/"
-arch=("x86_64")
-license=("BSD")
-depends=('bash')
-makedepends=()
-source=("$pkgname-$pkgver.tar.gz::https://github.com/antlr/antlr3/archive/$pkgver.tar.gz")
-sha256sums=('529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f')
+pkgdesc='C runtime for the ANTLR parsing library'
+url='http://www.antlr.org/'
+arch=('x86_64')
+license=('BSD')
+makedepends=('git')
+source=("git+https://github.com/antlr/antlr3.git#tag=$pkgver")
+md5sums=('SKIP')
 
 prepare() {
-  cd "${srcdir}/antlr3-${pkgver}/runtime/C"
-  cat <<EOF >antlr3config.h.in
+  cd antlr3/runtime/C
+  cat <<EOF> antlr3config.h.in
 #include <stdint.h>
 #include <stdarg.h>
 #include <stdlib.h>
@@ -36,14 +36,18 @@
 }
 
 build() {
-  cd "${srcdir}/antlr3-${pkgver}/runtime/C"
-  [ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
-  ./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt}
+  cd antlr3/runtime/C
+
+  ./configure --prefix=/usr --enable-64bit --sysconfdir=/etc
   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:



More information about the arch-commits mailing list