desktop/owncloud-client/PKGBUILD

58 lines
1.8 KiB
Bash
Raw Normal View History

2012-05-22 23:06:27 +08:00
# Maintainer: Giuseppe Calà <jiveaxe@gmail.com>
##############################################################
#### 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="RelWithDebInfo"
##############################################################
_name=mirall
pkgname=owncloud-client
pkgver=1.0.2
2012-05-23 00:13:19 +08:00
pkgrel=5
2012-05-22 23:06:27 +08:00
pkgdesc="ownCloud client based on mirall"
arch=('i686' 'x86_64')
url="http://owncloud.org/"
license=('GPL2')
2012-05-23 00:13:19 +08:00
depends=('qt' 'csync>=0.50.4' 'neon')
makedepends=('cmake' 'libssh' 'smbclient')
2012-05-22 23:06:27 +08:00
provides=('mirall' 'owncloud-client')
conflicts=('mirall-git' 'mirall')
categories=('network')
options=(!strip)
source=("http://download.owncloud.com/download/${_name}-${pkgver}.tar.bz2"
"${pkgname}.desktop")
md5sums=('6f8849f7d66aba7175fe4c634dd53bc3'
'e223d162626c2ff54efebaa90a182d81')
screenshot=(http://en.opensuse.org/images/b/bb/New_oc_connect.png)
# Clean options array to strip pkg if release buildtype is chosen
if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
options=()
fi
build() {
cd ${srcdir}/${_name}-${pkgver}
msg "Starting 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_INSTALL_PREFIX=/usr -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
}