diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-08 10:15:21 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:41:14 +0000 |
commit | bb34add6e3a583e58e06489f9ae39914f7c18b84 (patch) | |
tree | 8d2fa31e3d936e213f3070573b52abedab3ab346 /cmatrix | |
parent | 9987583aeffece666772921af4dcac1a6336b220 (diff) | |
download | contrib-bb34add6e3a583e58e06489f9ae39914f7c18b84.tar.gz contrib-bb34add6e3a583e58e06489f9ae39914f7c18b84.tar.xz |
cmatrix: updated cmake syntax
Diffstat (limited to 'cmatrix')
-rw-r--r-- | cmatrix/.signature | 4 | ||||
-rw-r--r-- | cmatrix/Pkgfile | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/cmatrix/.signature b/cmatrix/.signature index 3b6f98f24..15e5df5ce 100644 --- a/cmatrix/.signature +++ b/cmatrix/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF3y8HQc7KhzVBR3dz/zPYcyNsjebRSkpBRisuIYHU3u1TgvcgqAx5SKCOl5jDCjwGnGyulspt7UpmgeMMADIS8wg= -SHA256 (Pkgfile) = e7932fe2a274f86421e64ef85d115bffdd173102f07aee5e1fe182f1dc429446 +RWSagIOpLGJF38Q5xgw6a31sEBPKyqs+GZcfkDVsz1ksT3M/L67JMOCvdww+YpdqIKHHUkTeMBmf/ZQKF/6iSl4H138L22tdoAQ= +SHA256 (Pkgfile) = 42bd8f9ac715dcfbba8a2013a1e9adaf42ff3d9eca75b2a85091ad7c4d4418e0 SHA256 (.footprint) = 813bd11d0a2f4c0c1cfc48afb74507d985dd8fc000753fbd13e52eb6c46c8ae3 SHA256 (cmatrix-v2.0.tar.gz) = ad93ba39acd383696ab6a9ebbed1259ecf2d3cf9f49d6b97038c66f80749e99a 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 |