Package Details: polkit-qt6-git v0.200.0.r0.gaa1c6c4-1

Git Clone URL: https://aur.archlinux.org/polkit-qt6-git.git (read-only, click to copy)
Package Base: polkit-qt6-git
Description: A library that allows developers to access PolicyKit API with a nice Qt-style API
Upstream URL: https://invent.kde.org/libraries/polkit-qt-1
Licenses: LGPL
Conflicts: polkit-qt6
Provides: polkit-qt6
Submitter: vicr123
Maintainer: DawfukFR
Last Packager: DawfukFR
Votes: 2
Popularity: 0.24
First Submitted: 2022-12-05 10:13 (UTC)
Last Updated: 2024-04-14 19:33 (UTC)

Dependencies (4)

Required by (16)

Sources (1)

Latest Comments

vicr123 commented on 2023-04-02 12:56 (UTC)

Requested updates have been made to the package - sorry about the delay everyone

Rustmilian commented on 2023-03-14 14:49 (UTC) (edited on 2023-03-15 15:30 (UTC) by Rustmilian)

PKGBUILD

pkgname=polkit-qt6-git
pkgver=0.114.0.r13.g590e710
pkgrel=1
pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
arch=($CARCH)
url='https://community.kde.org/Frameworks'
license=('LGPL')
depends=('polkit' 'qt6-base' 'cmake')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/KDE/polkit-qt-1.git")
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S ${pkgname%-git} \
    -DCMAKE_BUILD_TYPE=Release \
    -DQT_MAJOR_VERSION=6 \
    -DCMAKE_INSTALL_PREFIX=/opt/KF5-qt6/
  cmake --build build
}


package() {
  DESTDIR="$pkgdir" cmake --install build
}

.gitignore

*
!/.gitignore
!/.SRCINFO
!/PKGBUILD

don't forget to regenerate the .SRCINFO

pmattern commented on 2023-03-09 01:43 (UTC)

You need to add cmake to makedepends.

davispuh commented on 2023-02-09 23:03 (UTC)

Hey, could you change CMAKE_INSTALL_PREFIX path to be /usr because that one will be found by default by CMake but now I need explicitly configure /opt/KF5-qt6/

Also it won't conflict with others because it still has qt6 in all the folders/names. And KDE Frameworks have switched to Qt6/KF6 now in their master branches.