From 4d329f6c61b7bcde6c295e75a249c35e61e71928 Mon Sep 17 00:00:00 2001 From: Ernesto Date: Tue, 11 Jun 2013 13:02:00 +0000 Subject: [PATCH] owncloud: add (client bits) --- csync-owncloud/PKGBUILD | 39 +++++++++++++++++++ owncloud-client/PKGBUILD | 51 +++++++++++++++++++++++++ owncloud-client/owncloud-client.desktop | 11 ++++++ owncloud-client/owncloud-client.install | 12 ++++++ 4 files changed, 113 insertions(+) create mode 100644 csync-owncloud/PKGBUILD create mode 100644 owncloud-client/PKGBUILD create mode 100644 owncloud-client/owncloud-client.desktop create mode 100644 owncloud-client/owncloud-client.install diff --git a/csync-owncloud/PKGBUILD b/csync-owncloud/PKGBUILD new file mode 100644 index 000000000..452f3ed32 --- /dev/null +++ b/csync-owncloud/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Michael Haesel +# Contributor: Carlos García carlos-lbs +# Contributor: Kuba Serafinowski +# https://github.com/zizzfizzix/pkgbuilds + +_name=ocsync +pkgname=csync-owncloud +pkgver=0.70.7 +pkgrel=1 +pkgdesc="A file synchronizer especially designed for you, the normal user." +arch=("x86_64") +url="http://www.csync.org" +license=('GPL2') +depends=('sqlite3' 'iniparser' 'neon' 'libssh' 'smbclient') +makedepends=('cmake') +provides=('csync') +conflicts=('csync') +source=("http://download.owncloud.com/download/${_name}-${pkgver}.tar.bz2") +sha256sums=('571c7a822a8e30966c3a7e61a5218b49e8d52e70e8a8ec80d16db786d60bb324') +_buildtype="Release" + +build() { + if [[ -e ${srcdir}/${_name}-${pkgver}-build ]]; then rm -rf ${srcdir}/${_name}-${pkgver}-build; fi + mkdir ${srcdir}/${_name}-${pkgver}-build + cd "${srcdir}/${_name}-${pkgver}-build" + + cmake -DCMAKE_BUILD_TYPE=${_buildtype} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSCONF_INSTALL_DIR=/etc \ + ../${_name}-${pkgver} + make +} + +package() { + cd "${srcdir}/${_name}-${pkgver}-build" + + make DESTDIR="${pkgdir}" install +} + diff --git a/owncloud-client/PKGBUILD b/owncloud-client/PKGBUILD new file mode 100644 index 000000000..8bb08f10b --- /dev/null +++ b/owncloud-client/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Michael Haesel +# Contributor: eyome +# Contributor: Carlos García carlos-lbs +# Contributor: Giuseppe Calà +# http://gitorious.org/chakra-packages/apps/trees/master/owncloud-client + +_name=mirall +pkgname=owncloud-client +pkgver=1.2.5 +pkgrel=1 +pkgdesc="ownCloud client based on mirall" +arch=('x86_64') +url="http://owncloud.org/" +screenshot="http://en.opensuse.org/images/b/bb/New_oc_connect.png" +license=('GPL2') +depends=('qt' 'csync-owncloud>=0.70.0' 'neon') +makedepends=('cmake' 'libssh' 'smbclient') +provides=('mirall' 'owncloud-client') +conflicts=('mirall-git' 'mirall') +categories=('network') +options=() +backup=('etc/owncloud-client/sync-exclude.lst') +install=${pkgname}.install +_buildtype="Release" +source=("http://download.owncloud.com/download/${_name}-${pkgver}.tar.bz2" + "${pkgname}.desktop") +sha256sums=('ff3e45b6e681363eb435deed55cc654c903f04597270cb1b966b0ac8d72758b8' + 'e0c1fa75171148ff3025508531a51244f54a835596595942b99131a745c588ca') + +build() { + cd "${srcdir}/${_name}-${pkgver}" + + if [[ -e "${srcdir}/${_name}-${pkgver}-build" ]]; then rm -rf "${srcdir}/${_name}-${pkgver}-build"; fi + mkdir "${srcdir}/${_name}-${pkgver}-build" + cd "${srcdir}/${_name}-${pkgver}-build" + + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCSYNC_INCLUDE_PATH=/usr/include/ocsync \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname} \ + -DCMAKE_BUILD_TYPE=${_buildtype} \ + ../${_name}-${pkgver} + make +} + +package() { + cd "${srcdir}/${_name}-${pkgver}-build" + + make DESTDIR="${pkgdir}" install + install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" +} diff --git a/owncloud-client/owncloud-client.desktop b/owncloud-client/owncloud-client.desktop new file mode 100644 index 000000000..bc4479a62 --- /dev/null +++ b/owncloud-client/owncloud-client.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=ownCloud +GenericName=File Sync +TryExec=owncloud +Exec=owncloud %u +Comment=ownCloud - Your Cloud, Your Data, Your Way! +Icon=mirall +Terminal=false +Categories=Qt;Utility; diff --git a/owncloud-client/owncloud-client.install b/owncloud-client/owncloud-client.install new file mode 100644 index 000000000..0dbed6e22 --- /dev/null +++ b/owncloud-client/owncloud-client.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} +