desktop/kdeconnect/PKGBUILD

52 lines
1.5 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
2014-03-09 04:19:00 +08:00
pkgver=0.5.1
2013-11-08 09:28:53 +08:00
#_pkgver=0.4
pkgrel=1
2013-10-27 19:29:03 +08:00
pkgdesc='KDE Connect - kded and kcm'
url='https://albertvaka.wordpress.com/2013/08/05/introducing-kde-connect/'
license=('GPL')
arch=('x86_64')
2013-11-28 00:48:29 +08:00
depends=('kdelibs' 'qjson' 'qca-ossl')
2013-10-27 19:29:03 +08:00
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')
2014-03-09 04:19:00 +08:00
source=("http://download.kde.org/unstable/kdeconnect/${pkgver}/src/${pkgname}-kde-${pkgver}.tar.xz")
md5sums=('0b85af9a0cd7e3feacffa2c0210dc1ec')
2013-10-27 19:29:03 +08:00
if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then
options=(debug)
fi
prepare() {
2013-11-08 09:28:53 +08:00
if [[ -e ${pkgname}-kde-${pkgver}-build ]]; then rm -rf ${pkgname}-build; fi
mkdir ${pkgname}-kde-${pkgver}-build
cd ${pkgname}-kde-${pkgver}
2013-10-27 19:29:03 +08:00
}
build() {
2013-11-08 09:28:53 +08:00
cd ${pkgname}-kde-${pkgver}-build
2013-10-27 19:29:03 +08:00
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=${_buildtype} \
2013-11-08 09:28:53 +08:00
../${pkgname}-kde-${pkgver}
2013-10-27 19:29:03 +08:00
make
}
package() {
2013-11-08 09:28:53 +08:00
cd ${pkgname}-kde-${pkgver}-build
2013-10-27 19:29:03 +08:00
make DESTDIR=${pkgdir} install
}