mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 21:17:16 +08:00
42 lines
945 B
Bash
42 lines
945 B
Bash
# Contributions from Arch:
|
|
|
|
source ../plasma.conf
|
|
|
|
pkgname=ksshaskpass
|
|
pkgver=${PVersion}
|
|
pkgrel=1
|
|
pkgdesc="ssh-add helper that uses kwallet and kpassworddialog"
|
|
arch=('x86_64')
|
|
url='https://projects.kde.org/projects/kde/workspace/ksshaskpass'
|
|
license=('LGPL')
|
|
depends=('kwallet')
|
|
makedepends=('extra-cmake-modules')
|
|
groups=('plasma')
|
|
options=("debug")
|
|
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz"
|
|
"$pkgname.sh")
|
|
sha256sums=( $(getSum ${pkgname})
|
|
'cba50feec8b0d058d0967407e79573b225c53dc1fe5461b3b2ddfbfbb2aff809')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
|
-DBUILD_TESTING=OFF
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm755 "$srcdir"/ksshaskpass.sh \
|
|
"${pkgdir}"/etc/profile.d/ksshaskpass.sh
|
|
}
|