1
0
forked from ports/contrib

nextcloud-client: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 12:10:51 +00:00
parent 4cc76cf219
commit 8504bd8dc9
2 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF39TpuXdWPmZHYu9Ov4U7Yf+hEWLqCb51cVJp5YH5S0j9j4we8L4Lysjx4ppj9ueod4d2dgo8/gadMJZyLlTKnwQ=
SHA256 (Pkgfile) = eeabc59e1d2a1aa6b16e05df1e174e4a982cc3bda2df0a32bfcc61d77c06d21c
RWSagIOpLGJF38wkjByFG8/cMZ+v3gbUNr51ifY3HHte8JDKxA60+6jKlZO+TbU6d0ldcu5I5L/hTu3uQpWBQ0u7aad6/pZ3Aw0=
SHA256 (Pkgfile) = a4be519d1dd5262444d1a8ffa9fd615b13122a22228b800bef1085f7a697abf4
SHA256 (.footprint) = 15771f2a3093afab072dc2ed88028f4929e1a6f756a87bbd0ad1a8d8b6b5104c
SHA256 (nextcloud-client-3.0.3-1.tar.gz) = abd021ff06ecb267221a221dbf8b4efd3bd8e418053cc49b6b6faa290717c6d8

View File

@ -10,12 +10,15 @@ release=1
source=(https://github.com/nextcloud/desktop/archive/v$version/$name-$version-$release.tar.gz)
build() {
cmake -Sdesktop-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
-DNO_SHIBBOLETH=1
cmake -S desktop-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_INSTALL_SYSCONFDIR=/usr/etc/nextcloud \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D NO_SHIBBOLETH=1 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build