desktop/ksysguard/PKGBUILD
2014-06-22 13:15:23 +00:00

40 lines
729 B
Bash

source ../plasma.conf
pkgname=ksysguard
pkgver=${PVersion}
pkgrel=1
pkgdesc="KSysguard"
arch=('i686' 'x86_64')
url='http://projects.kde.org'
license=('LGPL')
depends=('qt5-base' 'libksysguard' 'knewstuff')
makedepends=('extra-cmake-modules')
checkdepends=("cmake")
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname} | head -n 1) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${PBuildType} \
-DCMAKE_INSTALL_PREFIX=${PInstallPrefix} \
-DLIB_INSTALL_DIR=lib
make
}
check() {
cd build
make test || return 0
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}