PKGBUILD 1.17 KB
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1 2

pkgname=kauth
3
pkgver=5.62.0
4
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
5 6 7 8 9
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')
10
makedepends=("extra-cmake-modules>=5.62.0" 'qt5-tools')
Xuetian Weng's avatar
Xuetian Weng committed
11 12 13
checkdepends=('cmake')
groups=('kf5')
options=("debug")
14
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
15

Luca Giambonini's avatar
Luca Giambonini committed
16

Luca Giambonini's avatar
Luca Giambonini committed
17

18
sha256sums=('31162621200df4b927719e34ce62004c51e79b9d785f9c3056c6902f80eeefe6'
19
            'SKIP')
20
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Xuetian Weng's avatar
Xuetian Weng committed
21 22 23 24 25 26 27 28

prepare() {
  mkdir -p build
}
echo ${KFBuildType}

build() {
  cd build
29
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
30
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
31 32 33 34 35 36
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
Xuetian Weng's avatar
Xuetian Weng committed
37 38 39
  make
}

40 41 42 43 44 45
# check() {
#   cd build
#   eval `dbus-launch --sh-syntax `
#   make test
#   kill $DBUS_SESSION_BUS_PID
# }
Xuetian Weng's avatar
Xuetian Weng committed
46 47 48 49 50

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}