diff options
author | Danilo Kühn | 2016-10-01 15:21:36 +0200 |
---|---|---|
committer | Danilo Kühn | 2016-10-01 15:22:09 +0200 |
commit | 0470062c0af846001dde7e278666ba25222adb00 (patch) | |
tree | 6bb5bdc71be15bd8f14385d2afb4566ef970251d | |
download | aur-0470062c0af846001dde7e278666ba25222adb00.tar.gz |
add nextcloud client
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 80 | ||||
-rw-r--r-- | nextcloud-client.install | 19 | ||||
-rw-r--r-- | nextcloud-client.service | 13 |
5 files changed, 151 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e28428997fce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = nextcloud-client-git + pkgdesc = Nextloud client for linux + pkgver = 2.2.4 + pkgrel = 1 + url = http://nextcloud.org/ + install = nextcloud-client.install + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = cmake + makedepends = qt5-tools + depends = qtkeychain + depends = qt5-webkit + depends = hicolor-icon-theme + depends = xdg-utils + optdepends = python2-nautilus: integration with Nautilus + optdepends = nemo-python: integration with Nemo + provides = mirall + provides = mirall-git + provides = owncloud-client + provides = nextcloud-client + conflicts = mirall-git + conflicts = owncloud-client + conflicts = owncloud-client-ngs + conflicts = nextcloud-client + conflicts = owncloud-client-git + options = !strip + backup = etc/Nextcloud/sync-exclude.lst + source = nextcloud-client::git+https://github.com/nextcloud/client_theming.git + source = nextcloud-client.service + sha256sums = SKIP + sha256sums = 2dc7fdad6c7577548585e977ba6d148bdb3f35c55b79d05d0043773af09d661e + +pkgname = nextcloud-client-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e52cd6ba1d9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +nextcloud-client/ +pkg/ +src/ +*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2d958243972f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,80 @@ +# Maintainer: Danilo Kuehn <dk at nogo-software dot de> +# Git: https://github.com/nogo/archlinux-pkgbuild + +# Uncomment, if you want tha last release +_version=2.2.4 + +pkgname=nextcloud-client-git +_name=${pkgname/\-git/} +pkgver=2.2.4 +pkgrel=1 +pkgdesc="Nextloud client for linux" +arch=('i686' 'x86_64') +url="http://nextcloud.org/" +license=('GPL2') +depends=('qtkeychain' 'qt5-webkit' 'hicolor-icon-theme' 'xdg-utils') +optdepends=( + 'python2-nautilus: integration with Nautilus' + 'nemo-python: integration with Nemo' +) +makedepends=('cmake' 'qt5-tools') +provides=('mirall' 'mirall-git' 'owncloud-client' 'nextcloud-client') +conflicts=('mirall-git' 'owncloud-client' 'owncloud-client-ngs' 'nextcloud-client' 'owncloud-client-git') +install=${_name}.install +options=(!strip) +backup=('etc/Nextcloud/sync-exclude.lst') +source=( + "${_name}::git+https://github.com/nextcloud/client_theming.git" + "${_name}.service" +) +sha256sums=( + 'SKIP' + '2dc7fdad6c7577548585e977ba6d148bdb3f35c55b79d05d0043773af09d661e' +) + +pkgver() { + if [[ -z "${_version}" ]]; then + cd ${srcdir}/${_name} + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + else + echo ${_version} + fi +} + +prepare() { + cd ${srcdir}/${_name} + if [[ -n "${_version}" ]]; then + git checkout "v${_version}" + fi + git submodule update --init --recursive + mkdir -p ${srcdir}/${_name}/build-linux +} + +build() { + cd ${srcdir}/${_name}/build-linux + + cmake -D OEM_THEME_DIR=${srcdir}/${_name}/nextcloudtheme \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE="Release" \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc/${_name} \ + -DWITH_DOC=FALSE \ + ../client + + # -DQTKEYCHAIN_LIBRARY=/usr/lib/libqt5keychain.so \ +# -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qt5keychain/ \ + + make +} + +package() { + cd ${srcdir}/${_name}/build-linux + make DESTDIR=${pkgdir} install + + install -Dm644 ${srcdir}/${_name}.service ${pkgdir}/usr/lib/systemd/user/${_name}.service + + # Fix some naming issues + if [ -f ${pkgdir}/usr/share/applications/nextcloud.desktop ]; then + sed -Ei 's/Icon(\[.*\])?=nextcloud/Icon\1=Nextcloud/g' ${pkgdir}/usr/share/applications/nextcloud.desktop + fi +} diff --git a/nextcloud-client.install b/nextcloud-client.install new file mode 100644 index 000000000000..7b3ea262c174 --- /dev/null +++ b/nextcloud-client.install @@ -0,0 +1,19 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor + systemctl daemon-reload + echo ================================== Important ================================= + echo Start the nextcloud client daemon with: + echo systemctl start --user nextcloud-client.service + echo ============================================================================== + echo Enable the nextcloud client daemon with: + echo systemctl enable --user nextcloud-client.service + echo ============================================================================== +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/nextcloud-client.service b/nextcloud-client.service new file mode 100644 index 000000000000..18b9fd9fecde --- /dev/null +++ b/nextcloud-client.service @@ -0,0 +1,13 @@ +[Unit] +Description=Nextcloud client + +[Service] +Type=simple +ExecStart=/usr/bin/owncloud +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process +Restart=on-failure + +[Install] +WantedBy=default.target + |