mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
40 lines
727 B
Bash
40 lines
727 B
Bash
source ../plasma.conf
|
|
|
|
pkgname=ksysguard
|
|
pkgver=${PVersion}
|
|
pkgrel=1
|
|
pkgdesc="KSysguard"
|
|
arch=('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}-${PSubVersion}.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
|
|
}
|