Date: Thursday, August 18, 2022 @ 20:09:34
Author: felixonmars
Revision: 453509
archrelease: copy trunk to staging-x86_64
Added:
kcachegrind/repos/staging-x86_64/
kcachegrind/repos/staging-x86_64/PKGBUILD
(from rev 453508, kcachegrind/trunk/PKGBUILD)
kcachegrind/repos/staging-x86_64/keys/
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: kcachegrind/repos/staging-x86_64/PKGBUILD (from rev 453508,
kcachegrind/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2022-08-18 20:09:34 UTC (rev 453509)
@@ -0,0 +1,57 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+
+pkgbase=kcachegrind
+pkgname=(kcachegrind kcachegrind-common qcachegrind)
+pkgver=22.08.0
+pkgrel=1
+pkgdesc='Visualization of Performance Profiling Data'
+url='https://apps.kde.org/kcachegrind/'
+arch=(x86_64)
+license=(GPL LGPL FDL)
+makedepends=(extra-cmake-modules kdoctools qt5-tools kio)
+source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
+sha256sums=('674d0a6d56b3b0f0d37b5fe8f7b976ceded972842297a275f2230af2232f76d6'
+ 'SKIP')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid
<[email protected]>
+ F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck
<[email protected]>
+ D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker
<[email protected]>
+options=(debug)
+
+build() {
+ cmake -B build -S $pkgname-$pkgver \
+ -DBUILD_TESTING=OFF
+ cmake --build build
+}
+
+package_kcachegrind() {
+ groups=(kde-applications kdesdk)
+ depends=(kio kcachegrind-common)
+ optdepends=('graphviz: for plotting support')
+
+ DESTDIR="$pkgdir" cmake --install build
+ rm -r "$pkgdir"/usr/{bin/*tree,share/{doc,icons,locale}}
+}
+
+package_kcachegrind-common() {
+ pkgdesc+=' (common files)'
+ depends=(hicolor-icon-theme)
+ optdepends=('php: for pprof2calltree' 'perl: for dprof2calltree,
memprof2calltree and op2calltree')
+
+ DESTDIR="$pkgdir" cmake --install build
+ rm -r
"$pkgdir"/usr/{bin/kcachegrind,share/{kcachegrind,applications,metainfo}} #
provided by kcachegrind
+
+ # Fix python 2 path
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ "$pkgdir"/usr/bin/hotshot2calltree
+}
+
+package_qcachegrind() {
+ pkgdesc+=' (pure Qt version)'
+ depends=(qt5-base kcachegrind-common)
+ optdepends=('graphviz: for plotting support')
+
+ install -Dm755 build/bin/qcachegrind -t "$pkgdir"/usr/bin/
+ install -Dm644 $pkgbase-$pkgver/qcachegrind/qcachegrind.desktop -t
"$pkgdir"/usr/share/applications/
+}