[arch-commits] Commit in antlr4-runtime/repos (2 files)

Christian Hesse eworm at archlinux.org
Thu Mar 18 21:05:40 UTC 2021


    Date: Thursday, March 18, 2021 @ 21:05:40
  Author: eworm
Revision: 894522

archrelease: copy trunk to community-testing-x86_64

Added:
  antlr4-runtime/repos/community-testing-x86_64/
  antlr4-runtime/repos/community-testing-x86_64/PKGBUILD
    (from rev 894521, antlr4-runtime/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: antlr4-runtime/repos/community-testing-x86_64/PKGBUILD (from rev 894521, antlr4-runtime/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-03-18 21:05:40 UTC (rev 894522)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=antlr4-runtime
+pkgver=4.9.2
+pkgrel=1
+pkgdesc='Antlr C++ runtime'
+url='https://www.antlr.org/'
+arch=('x86_64')
+depends=('gcc-libs')
+makedepends=('git' 'cmake')
+license=('BSD')
+source=("https://www.antlr.org/download/antlr4-cpp-runtime-${pkgver}-source.zip")
+sha256sums=('838a2c804573f927c044e5f45a8feb297683a7047ab62dfac8ddc995498db11c')
+
+prepare() {
+  # mysql-workbench is built with C++17, so we need it here as well
+  sed -i '/CMAKE_CXX_STANDARD/s/11/17/' CMakeLists.txt
+}
+
+build() {
+  mkdir build
+  cd build
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}/" install
+}



More information about the arch-commits mailing list