core/kauth/PKGBUILD

50 lines
1.2 KiB
Bash
Raw Normal View History

2014-11-14 06:49:11 +08:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kauth
pkgver=${KFVersion}
pkgrel=2
2014-11-14 06:49:11 +08:00
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")
2017-03-05 08:49:08 +08:00
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=( $(getSum ${pkgname})
SKIP)
validpgpkeys=( ${KFvalidpgpkeys} )
2014-11-14 06:49:11 +08:00
# 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')
2014-11-14 06:49:11 +08:00
prepare() {
mkdir -p build
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i $srcdir/CVE-2017-8422.patch
2014-11-14 06:49:11 +08:00
}
echo ${KFBuildType}
build() {
cd build
2014-11-15 06:49:31 +08:00
cmake_kf5 ../${pkgname}-${pkgver}
2014-11-14 06:49:11 +08:00
make
}
# check() {
# cd build
# eval `dbus-launch --sh-syntax `
# make test
# kill $DBUS_SESSION_BUS_PID
# }
2014-11-14 06:49:11 +08:00
package() {
cd build
make DESTDIR="${pkgdir}" install
}