[arch-commits] Commit in antlr4-runtime/repos (2 files)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Sun Nov 7 21:19:16 UTC 2021
Date: Sunday, November 7, 2021 @ 21:19:15
Author: kgizdov
Revision: 1038753
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 1038752, antlr4-runtime/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: antlr4-runtime/repos/community-testing-x86_64/PKGBUILD (from rev 1038752, antlr4-runtime/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-11-07 21:19:15 UTC (rev 1038753)
@@ -0,0 +1,33 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=antlr4-runtime
+pkgver=4.9.3
+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=('5f0af6efd81f476c3e775c486eb0a71c25d6bbc14373e88a64690e2738d68e03')
+
+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 \
+ -DANTLR4_INSTALL=ON
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}/" install
+}
More information about the arch-commits
mailing list