[arch-commits] Commit in antlr4-runtime/repos (2 files)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Sun Sep 4 21:48:17 UTC 2022
Date: Sunday, September 4, 2022 @ 21:48:17
Author: kgizdov
Revision: 1292928
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 1292927, antlr4-runtime/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: antlr4-runtime/repos/community-testing-x86_64/PKGBUILD (from rev 1292927, antlr4-runtime/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-09-04 21:48:17 UTC (rev 1292928)
@@ -0,0 +1,36 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=antlr4-runtime
+pkgver=4.11.0
+pkgrel=1
+pkgdesc='Antlr C++ runtime'
+url='https://www.antlr.org/'
+arch=('x86_64')
+depends=('gcc-libs')
+makedepends=('git' 'cmake' 'python')
+license=('BSD')
+source=("https://www.antlr.org/download/antlr4-cpp-runtime-${pkgver}-source.zip")
+sha256sums=('0599e0029b3718b91eeaa14b6a777f96973be0e1675a1b35cc298e63ade1d194')
+# FS#72726
+options=(staticlibs)
+
+build() {
+ export CFLAGS+=' -ffat-lto-objects'
+ export CXXFLAGS+=' -ffat-lto-objects'
+
+ mkdir build
+ cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_STANDARD=17 \
+ -DANTLR4_INSTALL=ON \
+ -DINSTALL_GTEST=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}/" install
+ install -Dm644 "${srcdir}"/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE
+}
More information about the arch-commits
mailing list