summaryrefslogtreecommitdiff
path: root/cmatrix/Pkgfile
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-08 10:15:21 +0000
committerTim Biermann <tbier@posteo.de>2020-11-08 13:41:14 +0000
commitbb34add6e3a583e58e06489f9ae39914f7c18b84 (patch)
tree8d2fa31e3d936e213f3070573b52abedab3ab346 /cmatrix/Pkgfile
parent9987583aeffece666772921af4dcac1a6336b220 (diff)
downloadcontrib-bb34add6e3a583e58e06489f9ae39914f7c18b84.tar.gz
contrib-bb34add6e3a583e58e06489f9ae39914f7c18b84.tar.xz
cmatrix: updated cmake syntax
Diffstat (limited to 'cmatrix/Pkgfile')
-rw-r--r--cmatrix/Pkgfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmatrix/Pkgfile b/cmatrix/Pkgfile
index 6046d608f..fc3031a1a 100644
--- a/cmatrix/Pkgfile
+++ b/cmatrix/Pkgfile
@@ -10,8 +10,12 @@ release=1
source=(https://github.com/abishekvashok/cmatrix/archive/v$version/$name-v$version.tar.gz)
build() {
- cmake -S$name-$version -Bbuild \
- -DCMAKE_INSTALL_PREFIX=/usr
+ [[ -e /usr/bin/ninja ]] && PKGMK_CMATRIX+=' -G Ninja'
+ cmake -S $name-$version -B build $PKGMK_CMATRIX \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
+ -Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Generated by cgit