[arch-commits] Commit in antlr4-runtime/trunk (PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Mon Mar 14 15:07:54 UTC 2022
Date: Monday, March 14, 2022 @ 15:07:53
Author: kgizdov
Revision: 1152921
include license and use CMAKE_CXX_STANDARD
Modified:
antlr4-runtime/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-14 15:06:41 UTC (rev 1152920)
+++ PKGBUILD 2022-03-14 15:07:53 UTC (rev 1152921)
@@ -2,7 +2,7 @@
pkgname=antlr4-runtime
pkgver=4.9.3
-pkgrel=3
+pkgrel=4
pkgdesc='Antlr C++ runtime'
url='https://www.antlr.org/'
arch=('x86_64')
@@ -11,14 +11,9 @@
license=('BSD')
source=("https://www.antlr.org/download/antlr4-cpp-runtime-${pkgver}-source.zip")
sha256sums=('5f0af6efd81f476c3e775c486eb0a71c25d6bbc14373e88a64690e2738d68e03')
-# seems like there is no simple way of dropping the static lib
+# FS#72726
options=(staticlibs)
-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() {
export CFLAGS+=' -ffat-lto-objects'
export CXXFLAGS+=' -ffat-lto-objects'
@@ -28,6 +23,7 @@
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_STANDARD=17 \
-DANTLR4_INSTALL=ON
make
}
@@ -35,4 +31,5 @@
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