summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5aabe103642a9e404fcceac4d56d772ddd12597c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Tyler Dence <tyzoid@archlinux32.org>

pkgname=nextcloud-desktop-git
pkgver='2.5.3.rc1'
pkgrel='1'
pkgdesc='Nextcloud desktop client'
arch=('i686' 'x86_64')
url='https://nextcloud.com/'
license=('GPL2')
makedepends=('cmake' 'qt5-tools' 'git')
depends=('qtkeychain' 'qt5-webkit' 'hicolor-icon-theme' 'xdg-utils' 'qt5-webengine' 'qt5-svg')
optdepends=(
  'python2-nautilus: integration with Nautilus'
  'nemo-python: integration with Nemo'
)
conflicts=('mirall-git' 'owncloud-client' 'owncloud-client-ngs' 'owncloud-client-git' 'nextcloud-client' 'nextcloud-client-git' 'nextcloud-desktop')
provides=('nextcloud-client')
source=("${pkgname}::git+https://github.com/nextcloud/desktop.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname";
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//';
}

build() {
	cd "${srcdir}/${pkgname}";

	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE="Release" \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DNO_SHIBBOLETH=1 \
		-DQTKEYCHAIN_LIBRARY=/usr/lib/libqt5keychain.so \
		-DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qt5keychain/ \
		-DOPENSSL_INCLUDE_DIR=/usr/include/openssl \
		-DOPENSSL_LIBRARIES=/usr/lib/ \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname} \
		-DWITH_DOC=FALSE \
		.;

	make;
}

package() {
	cd "${srcdir}/${pkgname}";
	make DESTDIR="${pkgdir}" install
}