mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:47:13 +08:00
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kde-cli-tools
|
|
source ../plasma.conf
|
|
|
|
pkgname=kde-cli-tools
|
|
pkgver=${PVersion}
|
|
pkgrel=1
|
|
pkgdesc="Tools based on KDE Frameworks 5 to better interact with the system"
|
|
arch=('x86_64')
|
|
url='https://projects.kde.org/projects/kde/workspace/kde-cli-tools'
|
|
license=('LGPL')
|
|
depends=('kdesu' 'kdelibs4support' 'kcmutils')
|
|
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
|
|
checkdepends=("cmake")
|
|
groups=('plasma')
|
|
options=("debug")
|
|
source=("${PServer}/${pkgver}/${pkgname}-${PVersion}.tar.xz"{,.sig})
|
|
sha256sums=( $(getSum ${pkgname})
|
|
'SKIP' )
|
|
validpgpkeys=(${Pvalidpgpkeys})
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver} \
|
|
-DPYHTON_EXECUTABLE=/usr/bin/python3
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# conflicts with kdebase-runtime
|
|
rm -r "$pkgdir"/usr/share/man
|
|
|
|
# link some useful binaries
|
|
ln -sf /usr/lib/kf5/kdesu ${pkgdir}/usr/bin/kdesu
|
|
ln -sf /usr/lib/kf5/kdeeject ${pkgdir}/usr/bin/kdeeject
|
|
}
|