author | Chih-Hsuan Yen
<yan12125@archlinux.org> 2019-09-28 05:56:10 UTC |
committer | Chih-Hsuan Yen
<yan12125@archlinux.org> 2019-09-28 05:56:10 UTC |
parent | 810193e233265862ecd2a0cadf536f586acc9eaf |
PKGBUILD | +26 | -9 |
diff --git a/PKGBUILD b/PKGBUILD index 76e55ed..ccaaa4b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,15 +3,15 @@ # Contributor: Konstantin Shalygin <k0ste@k0ste.ru> pkgname=nextcloud-client -pkgver=2.5.3 -_commit=477614b8c954836327eb136be1c035627f09760b -pkgrel=2 +pkgver=2.6.0 +_commit=e0b32c19e4dd641f4edf74fc3fbdba3d86ca9784 +pkgrel=1 pkgdesc='Nextcloud desktop client' arch=(x86_64) url='https://nextcloud.com/' license=(GPL) depends=(openssl sqlite qtkeychain qt5-svg qt5-webengine xdg-utils) -makedepends=(doxygen extra-cmake-modules kio python-sphinx qt5-tools git) +makedepends=(doxygen extra-cmake-modules kio python-sphinx qt5-tools git cmocka) optdepends=( 'kio: integration with Dolphin' 'nemo-python: integration with Nemo' @@ -19,30 +19,47 @@ optdepends=( 'python2-caja: integration with Caja' ) source=("$pkgname::git+https://github.com/nextcloud/desktop.git?signed#commit=$_commit") -# one of keys controlled by @camilasan; see https://api.github.com/users/camilasan/gpg_keys -validpgpkeys=(A26B951528EA1BA1678C7AE5D406C75CEE1A36D6) +validpgpkeys=( + A26B951528EA1BA1678C7AE5D406C75CEE1A36D6 # one of keys controlled by github.com/camilasan +) sha256sums=('SKIP') backup=('etc/Nextcloud/sync-exclude.lst') prepare() { - cd $pkgname + # tmpdir for check() + mkdir tmpdir $pkgname/build - mkdir -p build + # Use system GNUInstallDirs.cmake so that we can benefit from + # https://gitlab.kitware.com/cmake/cmake/merge_requests/3735 + rm -v $pkgname/cmake/modules/GNUInstallDirs.cmake } build() { cd $pkgname/build + # bundled breakpad in libcrashreporter-qt submodule is too old and does not build with glibc >= 2.26 + # Upstream fix: https://github.com/google/breakpad/commit/bddcc58860f522a0d4cbaa7e9d04058caee0db9d cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ -DNO_SHIBBOLETH=1 \ + -DWITH_CRASHREPORTER=OFF \ + -DUNIT_TESTING=ON \ .. make + # TODO: fix installation of PDF and HTML documents + # WIP at https://github.com/yan12125/desktop/tree/doc-install-path make doc-man } +check() { + cd $pkgname/build + + # Tests fail if $TMPDIR is too small; specify an alternative for machines + # with a small /tmp partition. + TMPDIR="$srcdir/tmpdir" make test ARGS="-V" +} + package() { cd $pkgname/build