Permalink
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (72 sloc) 1.91 KB
name: nextcloud-client
version: 2.2.4+git
icon: ../nextcloudtheme/theme/colored/Nextcloud-icon.svg
summary: Nextcloud Desktop Client
description: |
The Nextcloud Desktop Client is a tool to synchronize files from Nextcloud
Server with your computer.
grade: stable
confinement: strict
parts:
client:
plugin: cmake
source: ../
source-type: git
source-subdir: client
build-packages:
- g++
- libqt5webkit5-dev
- libsqlite3-dev
- libssl-dev
- pkg-config
- qt5keychain-dev
- qttools5-dev-tools
stage-packages:
# qtkeychain requires these libs at runtime to support keyrings
- libsecret-1-0
- libgnome-keyring0
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DOEM_THEME_DIR=$SNAPCRAFT_PART_INSTALL/../src/nextcloudtheme
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_INSTALL_LIBDIR=/usr/lib
- -DSYSCONF_INSTALL_DIR=/etc
install: |
# Replace icon with the correct path in the snap
sed -ri "s|(^Icon=).*$|\1\${SNAP}/meta/gui/icon.svg|" "$SNAPCRAFT_PART_INSTALL/usr/share/applications/nextcloud.desktop"
after:
- desktop-qt5
- snapcraft-preload
xdg-open:
source: https://github.com/ubuntu-core/snapd-xdg-open.git
source-depth: 1
plugin: dump
organize:
data/xdg-open: bin/xdg-open
prime:
- bin
apps:
nextcloud-client:
aliases:
- nextcloud
command: snapcraft-preload nextcloud
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/nextcloud:$LD_LIBRARY_PATH
desktop: usr/share/applications/nextcloud.desktop
plugs:
- unity7
- home
- network
- network-bind
- network-manager
- password-manager-service
cmd:
aliases:
- nextcloudcmd
command: snapcraft-preload nextcloudcmd
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/nextcloud:$LD_LIBRARY_PATH
plugs:
- unity7
- home
- network