nextcloud-client: update to 2.5.0 (build failed)

This commit is contained in:
Jeff Huang 2018-11-16 12:55:47 +01:00
parent 0436969068
commit 12c7cda8ff

View File

@ -2,48 +2,39 @@
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
_next_commit='57bc7918d7b0650c116f3512787f7677d4e5ab17'
pkgname=nextcloud-client
pkgver=2.3.3
pkgver=2.5.0
pkgrel=1
pkgdesc='Nextcloud desktop client'
arch=('x86_64')
url='https://nextcloud.com/'
license=('GPL2')
depends=('qt5-webkit' 'hicolor-icon-theme' 'xdg-utils' 'qtkeychain')
makedepends=('git' 'extra-cmake-modules' 'python3-sphinx' 'qt5-tools' 'doxygen' 'qtkeychain')
depends=('qt5-webengine' 'qt5-webkit' 'hicolor-icon-theme' 'xdg-utils' 'qtkeychain')
makedepends=('extra-cmake-modules' 'python3-sphinx' 'qt5-tools' 'doxygen' 'kio')
optdepends=('kio: Resource and network access abstraction (KDE)')
conflicts=('owncloud-client')
replaces=('owncloud-client')
source=("https://github.com/nextcloud/client_theming/archive/v${pkgver}.tar.gz")
sha256sums=('e3c4393095206648c96980fb23d0520658b3aa8a9a1e31db38b6f59024cb6f8b')
source=("https://github.com/nextcloud/desktop/archive/v${pkgver}.tar.gz")
sha256sums=('4d639f43e49fd4367cd1b99bf21aecb2eac3bd89a7b0d96c7d2a0975baad6528')
backup=('etc/Nextcloud/sync-exclude.lst')
prepare() {
mkdir -p "${srcdir}/client_theming-${pkgver}/build-linux"
git clone git://github.com/owncloud/client.git "${srcdir}/client_theming-${pkgver}/client"
cd "${srcdir}/client_theming-${pkgver}/client"
git checkout "${_next_commit}"
git submodule update --init --recursive
mkdir -p "${srcdir}/desktop-${pkgver}/build"
}
build() {
cd "${srcdir}/client_theming-${pkgver}/build-linux"
cd "${srcdir}/desktop-${pkgver}/build"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr
cmake -D OEM_THEME_DIR="${srcdir}/client_theming-${pkgver}/nextcloudtheme" ../client \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname}
make
make doc-man
}
check() {
sed -Ei 's|Icon(\[.*\])?=nextcloud|Icon\1=Nextcloud|g' "${srcdir}/client_theming-${pkgver}/build-linux/src/gui/nextcloud.desktop"
}
package() {
cd "${srcdir}/client_theming-${pkgver}/build-linux"
cd "${srcdir}/desktop-${pkgver}/build"
make DESTDIR="${pkgdir}" install
}