# Maintainer (Arch): Kuba Serafinowski # https://github.com/zizzfizzix/pkgbuilds # Maintainer: Jorge Araya Navarro ############################################################## #### 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. _buildtype='Release' ############################################################## _name=mirall pkgname=owncloud-client pkgver=1.6.2 pkgrel=2 pkgdesc='ownCloud client based on mirall' arch=('i686' 'x86_64' 'mips64el') url='http://owncloud.org/' license=('GPL2') depends=('qtkeychain' 'qtwebkit' 'neon') makedepends=('cmake' 'python-sphinx') provides=('mirall' 'ocsync') conflicts=('mirall-git' 'ocsync') install=owncloud-client.install backup=('etc/ownCloud/sync-exclude.lst') source=("https://download.owncloud.com/desktop/stable/${_name}-${pkgver}.tar.bz2" "https://download.owncloud.com/desktop/stable/${_name}-${pkgver}.tar.bz2.asc" 'man.patch') md5sums=('52518b622e9b2c151e64a4b56bcf2414' 'SKIP' '4e252cf4df3276c3dadf45232b4e17a2') if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then options=('debug') fi prepare() { if [[ -e ${srcdir}/${_name}-${pkgver}-build ]]; then rm -rf ${srcdir}/${_name}-${pkgver}-build; fi mkdir ${srcdir}/${_name}-${pkgver}-build cd ${srcdir}/${_name}-${pkgver} patch -p0 -i ${srcdir}/man.patch } build() { cd ${srcdir}/${_name}-${pkgver}-build cmake -DBUILD_WITH_QT4=on \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=${_buildtype} \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname} \ ../${_name}-${pkgver} make make doc-man } package() { cd ${srcdir}/${_name}-${pkgver}-build make DESTDIR=${pkgdir} install }