[skip-ci] nextcloud-client: import to replace owncloud-client

This commit is contained in:
Jeff Huang 2018-03-04 23:28:02 +00:00
parent 4c6617c4d2
commit 0c301a58b5

49
nextcloud-client/PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
# Contributions from Arch:
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
_next_commit='57bc7918d7b0650c116f3512787f7677d4e5ab17'
pkgname=nextcloud-client
pkgver=2.3.3
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')
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')
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
}
build() {
cd "${srcdir}/client_theming-${pkgver}/build-linux"
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"
make DESTDIR="${pkgdir}" install
}