# Contributor: Andrea Scarpino source ../frameworks.conf pkgname=kauth pkgver=${KFVersion} pkgrel=2 pkgdesc='Abstraction to system policy and authentication features' arch=('x86_64') url='https://projects.kde.org/projects/frameworks/kauth' license=('LGPL') depends=('kcoreaddons' 'polkit-qt5') makedepends=("extra-cmake-modules>=${KFECMVersion}" 'qt5-tools') checkdepends=('cmake') groups=('kf5') options=("debug") source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig}) sha256sums=( $(getSum ${pkgname}) SKIP) validpgpkeys=( ${KFvalidpgpkeys} ) # https://www.kde.org/info/security/advisory-20170510-1.txt kauth < 5.34, kdelibs < 4.14.32 source+=(CVE-2017-8422.patch::'https://cgit.kde.org/kauth.git/patch/?id=df875f725293af53399f5146362eb158b4f9216a') sha256sums+=('dd628d4ff775a3444bcb382f6dfc6fa0df4583690f2200ddb256275e5a94d4b4') prepare() { mkdir -p build cd ${srcdir}/${pkgname}-${pkgver} patch -Np1 -i $srcdir/CVE-2017-8422.patch } echo ${KFBuildType} build() { cd build cmake_kf5 ../${pkgname}-${pkgver} make } # check() { # cd build # eval `dbus-launch --sh-syntax ` # make test # kill $DBUS_SESSION_BUS_PID # } package() { cd build make DESTDIR="${pkgdir}" install }