# Maintainer: Michael Haesel # Contributor: Carlos GarcĂ­a carlos-lbs # Contributor: Kuba Serafinowski # https://github.com/zizzfizzix/pkgbuilds _name=ocsync pkgname=csync-owncloud pkgver=0.90.2 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=('91359c7934cf23b5ac51f9cc329f6a2f8e7cb8a47d13619220cadf917f702a05') _buildtype="Release" prepare() { if [[ -e ${_name}-${pkgver}-build ]]; then rm -rf ${_name}-${pkgver}-build; fi mkdir ${_name}-${pkgver}-build } build() { cd ${_name}-${pkgver}-build cmake -DCMAKE_BUILD_TYPE=${_buildtype} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONF_INSTALL_DIR=/etc \ ../${_name}-${pkgver} make } package() { cd ${_name}-${pkgver}-build make DESTDIR="${pkgdir}" install }