summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD57
2 files changed, 36 insertions, 37 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0912e1258dd..589332f2ecf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,22 @@
pkgbase = kdesu-git
- pkgdesc = KDE Su
- pkgver = r400.5b2f4a7
+ pkgdesc = Integration with su for elevated privileges
+ pkgver = 5.79.0_r437.g0ea8a6e
pkgrel = 1
- url = https://projects.kde.org/projects/frameworks/kdesu
- arch = i686
+ url = https://community.kde.org/Frameworks
arch = x86_64
- groups = kf5
+ groups = kf5-git
license = LGPL
- makedepends = extra-cmake-modules-git
makedepends = git
+ makedepends = extra-cmake-modules-git
+ makedepends = doxygen
+ makedepends = qt5-tools
+ makedepends = qt5-doc
depends = kservice-git
depends = kpty-git
provides = kdesu
conflicts = kdesu
source = git+https://github.com/KDE/kdesu.git
- md5sums = SKIP
+ sha256sums = SKIP
pkgname = kdesu-git
diff --git a/PKGBUILD b/PKGBUILD
index dc984b8eae8..8d37814a67d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,40 @@
-# Maintainer: João Figueiredo <jf dot mundox at gmail dot com>
+# Merged with official ABS kdesu PKGBUILD by João, 2021/02/01 (all respective contributors apply herein)
+# Maintainer: João Figueiredo <jf.mundox@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdesu-git
-pkgver=r400.5b2f4a7
+pkgver=5.79.0_r437.g0ea8a6e
pkgrel=1
-pkgdesc='KDE Su'
-arch=('i686' 'x86_64')
-url='https://projects.kde.org/projects/frameworks/kdesu'
-license=('LGPL')
-depends=('kservice-git' 'kpty-git')
-makedepends=('extra-cmake-modules-git' 'git')
-groups=('kf5')
-conflicts=(kdesu)
-provides=(kdesu)
-source=('git+https://github.com/KDE/kdesu.git')
-md5sums=('SKIP')
+pkgdesc='Integration with su for elevated privileges'
+arch=($CARCH)
+url='https://community.kde.org/Frameworks'
+license=(LGPL)
+depends=(kservice-git kpty-git)
+makedepends=(git extra-cmake-modules-git doxygen qt5-tools qt5-doc)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+groups=(kf5-git)
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
+sha256sums=('SKIP')
pkgver() {
- cd kdesu
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-prepare() {
- mkdir -p build
+ cd ${pkgname%-git}
+ _ver="$(grep -m1 "set(KF5\?_VERSION" CMakeLists.txt | cut -d '"' -f2 | tr - .)"
+ echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
- cd build
- cmake ../kdesu \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DKDE_INSTALL_LIBDIR=lib \
- -DKDE_INSTALL_LIBEXECDIR=lib \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- -DBUILD_TESTING=OFF
- make
+ cmake -B build -S ${pkgname%-git} \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_QCH=ON
+ cmake --build build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
+
+# See FS#44277
+ chown :nobody "$pkgdir"/usr/lib/kf5/kdesud
+ chmod g+s "$pkgdir"/usr/lib/kf5/kdesud
}