summaryrefslogtreecommitdiff
path: root/pcr/ocsync/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /pcr/ocsync/PKGBUILD
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'pcr/ocsync/PKGBUILD')
-rw-r--r--pcr/ocsync/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/pcr/ocsync/PKGBUILD b/pcr/ocsync/PKGBUILD
new file mode 100644
index 000000000..cc780cfbb
--- /dev/null
+++ b/pcr/ocsync/PKGBUILD
@@ -0,0 +1,54 @@
+# 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'
+
+##############################################################
+
+pkgname=ocsync
+pkgver=0.91.4
+pkgrel=2
+pkgdesc='A file synchronizer especially designed for you, the normal user. Dependency of owncloud-client.'
+arch=('i686' 'x86_64' 'armv7h')
+url='http://www.csync.org'
+license=('GPL2')
+depends=('sqlite3' 'iniparser' 'neon' 'libssh')
+makedepends=('cmake')
+provides=('csync' 'csync-owncloud')
+conflicts=('csync' 'csync-owncloud')
+options=('staticlibs')
+backup=('etc/ocsync/ocsync.conf' 'etc/ocsync/ocsync_exclude.conf')
+source=("http://download.owncloud.com/desktop/stable/${pkgname}-${pkgver}.tar.bz2")
+
+if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then
+ options+=('debug')
+fi
+
+prepare() {
+ if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
+ mkdir ${srcdir}/${pkgname}-${pkgver}-build
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}-build
+
+ cmake -DCMAKE_BUILD_TYPE=${_buildtype} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONF_INSTALL_DIR=/etc \
+ ../${pkgname}-${pkgver}
+ make
+}
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}-build
+ make DESTDIR=${pkgdir} install
+}
+sha256sums=('9ce5d04ff0475be4c3d3bfff43a554980d88277e95de4128a3f18611529b2cb6')