desktop/kdeconnect/PKGBUILD
Neophytos Kolokotronis c4f6fe02e0 kdeconnect: 0.5.2.1
2014-05-16 18:45:37 +00:00

52 lines
1.5 KiB
Bash

# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributions from AUR: https://aur.archlinux.org/packages/kdeconnect/
# The section below can be adjusted to suit your needs
# What type of build do you want? Default is Release.
# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
_buildtype='Release'
pkgname=kdeconnect
pkgver=0.5.2.1
_pkgver=0.5.2
pkgrel=1
pkgdesc='KDE Connect - kded and kcm'
url='https://albertvaka.wordpress.com/2013/08/05/introducing-kde-connect/'
license=('GPL')
arch=('x86_64')
depends=('kdelibs' 'qjson' 'qca-ossl')
makedepends=('automoc4' 'cmake')
provides=('kdeconnect')
conflicts=('kdeconnect-git')
install=kdeconnect.install
screenshot=('http://albertvaka.files.wordpress.com/2013/08/kcm.png')
source=("http://download.kde.org/unstable/kdeconnect/${_pkgver}/src/${pkgname}-kde-${pkgver}.tar.xz")
md5sums=('b4da336cb34e029eb358826fbb00a07c')
if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then
options=(debug)
fi
prepare() {
if [[ -e ${pkgname}-kde-${pkgver}-build ]]; then rm -rf ${pkgname}-build; fi
mkdir ${pkgname}-kde-${pkgver}-build
cd ${pkgname}-kde-${pkgver}
}
build() {
cd ${pkgname}-kde-${pkgver}-build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=${_buildtype} \
../${pkgname}-kde-${pkgver}
make
}
package() {
cd ${pkgname}-kde-${pkgver}-build
make DESTDIR=${pkgdir} install
}