mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:14:37 +08:00
41 lines
887 B
Bash
41 lines
887 B
Bash
source ../plasma.conf
|
|
|
|
pkgname=kwallet-pam
|
|
pkgver=${PVersion}
|
|
pkgrel=2
|
|
pkgdesc='KWallet PAM integration'
|
|
arch=(x86_64)
|
|
url='https://projects.kde.org/kwallet-pam'
|
|
license=(LGPL)
|
|
depends=(kwallet)
|
|
makedepends=(extra-cmake-modules)
|
|
groups=('plasma')
|
|
options=("debug")
|
|
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz"
|
|
"install-path.patch")
|
|
sha256sums=( $(getSum ${pkgname})
|
|
"861428b4ec11c08c623e390f4ac97282b18125d84591821cbd6f742db70163d3")
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
mkdir -p build4
|
|
cd ${pkgname}-${pkgver}
|
|
patch -i ../install-path.patch -Np0
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver} -DCMAKE_INSTALL_LIBDIR=lib
|
|
make
|
|
|
|
cd ../build4
|
|
cmake_kf5 ../${pkgname}-${pkgver} -DCMAKE_INSTALL_LIBDIR=lib -DKWALLET4=1
|
|
make
|
|
}
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
cd ../build4
|
|
make DESTDIR="$pkgdir" install
|
|
}
|