summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Figueiredo2021-02-01 23:19:16 +0000
committerJoão Figueiredo2021-02-01 23:19:16 +0000
commited3e8ddbba7bcf7412bd374c9b141f0f294f95a1 (patch)
tree4476d723ab1e4290788ee0135e25ccc084e2390b
parentf37eb6e8c59f0192872f1055b40cf4522b25ffb3 (diff)
downloadaur-ed3e8ddbba7bcf7412bd374c9b141f0f294f95a1.tar.gz
Merged with official ABS kcrash PKGBUILD
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD53
2 files changed, 35 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 62e979b474e..b7d6241dfca 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,23 @@
pkgbase = kcrash-git
- pkgdesc = KCrash
- pkgver = v5.71.0.r7.g4008e6a
- pkgrel = 2
- url = https://projects.kde.org/projects/frameworks/kcrash
- arch = i686
+ pkgdesc = Support for application crash analysis and bug report from apps
+ pkgver = 5.79.0_r347.g62e666c
+ pkgrel = 1
+ url = https://community.kde.org/Frameworks
arch = x86_64
+ 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 = kcoreaddons-git
depends = kwindowsystem-git
+ optdepends = drkonqi-git: KDE crash handler application
provides = kcrash
conflicts = kcrash
source = git+https://github.com/KDE/kcrash.git
- md5sums = SKIP
+ sha256sums = SKIP
pkgname = kcrash-git
diff --git a/PKGBUILD b/PKGBUILD
index b9a415f80ae..ad30842a128 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,37 @@
-# Maintainer: João Figueiredo <jf dot mundox at gmail dot com>
+# Merged with official ABS kcrash 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=kcrash-git
-pkgver=v5.71.0.r7.g4008e6a
-pkgrel=2
-pkgdesc='KCrash'
-arch=('i686' 'x86_64')
-url='https://projects.kde.org/projects/frameworks/kcrash'
-license=('LGPL')
-depends=('kcoreaddons-git' 'kwindowsystem-git')
-makedepends=('extra-cmake-modules-git' 'git')
-conflicts=(kcrash)
-provides=(kcrash)
-source=('git+https://github.com/KDE/kcrash.git')
-md5sums=('SKIP')
+pkgver=5.79.0_r347.g62e666c
+pkgrel=1
+pkgdesc='Support for application crash analysis and bug report from apps'
+arch=($CARCH)
+url='https://community.kde.org/Frameworks'
+license=(LGPL)
+depends=(kcoreaddons-git kwindowsystem-git)
+makedepends=(git extra-cmake-modules-git doxygen qt5-tools qt5-doc)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+optdepends=('drkonqi-git: KDE crash handler application')
+groups=(kf5-git)
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
+sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- mkdir -p build
+ _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 ../kcrash \
- -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
}