diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /pcr/owncloud-client | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'pcr/owncloud-client')
-rw-r--r-- | pcr/owncloud-client/PKGBUILD | 59 | ||||
-rw-r--r-- | pcr/owncloud-client/owncloud-client.desktop | 11 | ||||
-rw-r--r-- | pcr/owncloud-client/owncloud-client.install | 11 |
3 files changed, 81 insertions, 0 deletions
diff --git a/pcr/owncloud-client/PKGBUILD b/pcr/owncloud-client/PKGBUILD new file mode 100644 index 000000000..2e1e82c15 --- /dev/null +++ b/pcr/owncloud-client/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com> +# https://github.com/zizzfizzix/pkgbuilds +# Maintainer: Jorge Araya Navarro <shackra@riseup.net> +# +############################################################## +#### The section below can be adjusted to suit your needs #### +############################################################## + +# What type of build do you want? +# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported. +# Default is RelWithDebInfo to help with debugging. + +_buildtype='Release' + +############################################################## + +_name=mirall +pkgname=owncloud-client +pkgver=1.5.1 +pkgrel=1 +pkgdesc='ownCloud client based on mirall' +arch=('i686' 'x86_64' 'armv7h') +url='http://owncloud.org/' +license=('GPL2') +depends=('qt4' 'ocsync' 'qtkeychain' 'qtwebkit') +makedepends=('cmake') +provides=('mirall' 'owncloud-client') +conflicts=('mirall-git') +install=owncloud-client.install +backup=('etc/ownCloud/sync-exclude.lst') +source=("http://download.owncloud.com/desktop/stable/${_name}-${pkgver}.tar.bz2") + +if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then + options=(!strip) +fi + +prepare() { + if [[ -e ${srcdir}/${_name}-${pkgver}-build ]]; then rm -rf ${srcdir}/${_name}-${pkgver}-build; fi + mkdir ${srcdir}/${_name}-${pkgver}-build +} + +build() { + cd ${srcdir}/${_name}-${pkgver}-build + + cmake -DQT_QMAKE_EXECUTABLE=qmake-qt4 \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_BUILD_TYPE=${_buildtype} \ + -DCSYNC_INCLUDE_PATH=/usr/include/ocsync \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname} \ + ../${_name}-${pkgver} + make +} + +package() { + cd ${srcdir}/${_name}-${pkgver}-build + make DESTDIR=${pkgdir} install +} +sha256sums=('79c41f8c72c994ab803b7053a1c7e0a46bbd20c25c1eed900e1c98433745daee') diff --git a/pcr/owncloud-client/owncloud-client.desktop b/pcr/owncloud-client/owncloud-client.desktop new file mode 100644 index 000000000..005e52219 --- /dev/null +++ b/pcr/owncloud-client/owncloud-client.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=ownCloud 2012 client +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/pcr/owncloud-client/owncloud-client.install b/pcr/owncloud-client/owncloud-client.install new file mode 100644 index 000000000..eecc35ccd --- /dev/null +++ b/pcr/owncloud-client/owncloud-client.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor > /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |