mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 08:14:37 +08:00
43 lines
823 B
Bash
43 lines
823 B
Bash
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
||
|
|
||
|
source ../plasma.conf
|
||
|
|
||
|
pkgname=khotkeys
|
||
|
pkgver=${PVersion}
|
||
|
pkgrel=2
|
||
|
pkgdesc='kinfocenter'
|
||
|
arch=('i686' 'x86_64')
|
||
|
url='projects.kde.org/'
|
||
|
license=('LGPL')
|
||
|
depends=('plasma-workspace')
|
||
|
makedepends=('extra-cmake-modules' 'kdoctools')
|
||
|
checkdepends=("cmake")
|
||
|
groups=('plasma')
|
||
|
options=("debug")
|
||
|
source=("${PServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
||
|
sha256sums=( $(getSum ${pkgname}) )
|
||
|
|
||
|
prepare() {
|
||
|
mkdir -p build
|
||
|
sed -e "s/PO_FILES //" -i ${srcdir}/$pkgname-$pkgver/po/*/CMakeLists.txt
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd build
|
||
|
cmake ../${pkgname}-${pkgver} \
|
||
|
-DCMAKE_BUILD_TYPE=${PBuildType} \
|
||
|
-DCMAKE_INSTALL_PREFIX=${PInstallPrefix} \
|
||
|
-DLIB_INSTALL_DIR=lib
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd build
|
||
|
make test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd build
|
||
|
make DESTDIR="${pkgdir}" install
|
||
|
}
|