summaryrefslogtreecommitdiff
path: root/flatbuffers
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-03 17:59:44 +0000
committerTim Biermann <tbier@posteo.de>2020-11-03 17:59:44 +0000
commitf85ff43a69fe96b96a9a2935b12e67cb35e9b8ed (patch)
treef6dec214667606f7e2ac0e8462656f8a0b91fe31 /flatbuffers
parent63f93d3cb661b8642e694b35ef0d832fb07910aa (diff)
downloadcontrib-f85ff43a69fe96b96a9a2935b12e67cb35e9b8ed.tar.gz
contrib-f85ff43a69fe96b96a9a2935b12e67cb35e9b8ed.tar.xz
flatbuffers: updated cmake syntax
Diffstat (limited to 'flatbuffers')
-rw-r--r--flatbuffers/.signature4
-rw-r--r--flatbuffers/Pkgfile8
2 files changed, 6 insertions, 6 deletions
diff --git a/flatbuffers/.signature b/flatbuffers/.signature
index aa23f3d6e..e62438a52 100644
--- a/flatbuffers/.signature
+++ b/flatbuffers/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF33AyHxW+pP2ndf+RssZWDhPPAlPRJbXk5NMOCdzYn+KQWugsstUZ/GA/h2H8ixdktMTPHvPrYKvgbTuaNmtE0wM=
-SHA256 (Pkgfile) = 8d48d9af4713f4620fbfaa52d62765a0caf56487877510cda77450a85c31f24c
+RWSagIOpLGJF37fxXj2f3rQhC3Fi+ZYcNeo1z+M0VLlmnW/Zfzn69c0jz8L8uOX9ksXdUUtiAfv4eBFi4h5AqSCSh+X9wY5lmQU=
+SHA256 (Pkgfile) = 9e72eddf1254479b109bf6aef1cbfa6597046cb262ae7ef9215080932b51a292
SHA256 (.footprint) = c3adb3bafa7c6407301f2ccc474178450f514356bd1018f88ae8751011088dc3
SHA256 (flatbuffers-1.12.0.tar.gz) = 62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45
diff --git a/flatbuffers/Pkgfile b/flatbuffers/Pkgfile
index 66af8c4f9..6185a2d20 100644
--- a/flatbuffers/Pkgfile
+++ b/flatbuffers/Pkgfile
@@ -9,12 +9,12 @@ release=1
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)
build() {
- cd $name-$version
- cmake . \
+ [[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS_OPTIONS=' -GNinja'
+ cmake -S$name-$version -Bbuild $PKGMK_FLATBUFFERS_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
- make
- make DESTDIR=$PKG install
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
}

Generated by cgit