desktop/kdeconnect/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

2013-10-27 19:29:03 +08:00
# 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
2013-11-06 21:47:14 +08:00
pkgver=0.4
_pkgver=0.4
2013-10-27 19:29:03 +08:00
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')
makedepends=('automoc4' 'cmake')
provides=('kdeconnect')
conflicts=('kdeconnect-git')
install=kdeconnect.install
2013-11-06 21:47:14 +08:00
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=('374d35d154c296a9808bb32a9709e93d')
2013-10-27 19:29:03 +08:00
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
}
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
}