[arch-commits] Commit in kcachegrind/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Apr 20 16:57:27 UTC 2019


    Date: Saturday, April 20, 2019 @ 16:57:23
  Author: arojas
Revision: 351235

archrelease: copy trunk to testing-x86_64

Added:
  kcachegrind/repos/testing-x86_64/
  kcachegrind/repos/testing-x86_64/PKGBUILD
    (from rev 351234, kcachegrind/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: kcachegrind/repos/testing-x86_64/PKGBUILD (from rev 351234, kcachegrind/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-04-20 16:57:23 UTC (rev 351235)
@@ -0,0 +1,65 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgbase=kcachegrind
+pkgname=(kcachegrind kcachegrind-common qcachegrind)
+pkgver=19.04.0
+pkgrel=1
+pkgdesc='Visualization of Performance Profiling Data'
+url='https://kde.org/applications/development/kcachegrind/'
+arch=(x86_64)
+license=(GPL LGPL FDL)
+makedepends=(extra-cmake-modules kdoctools qt5-tools kio)
+source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
+sha256sums=('7021ac1b133e86692dad92ff8de6a0467c2b488d7e5c2977ee4880c166e088ca'
+            'SKIP')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid at kde.org>
+              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck at kde.org>
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_TESTING=OFF
+  make
+}
+
+package_kcachegrind() {
+  groups=(kde-applications kdesdk)
+  depends=(kio kcachegrind-common)
+  conflicts=(kdesdk-kcachegrind)
+  replaces=(kdesdk-kcachegrind)
+  optdepends=('graphviz: for plotting support')
+
+  cd build
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{bin/*tree,share/{doc,icons,locale}}
+}
+
+package_kcachegrind-common() {
+  pkgdesc+=' (common files)'
+  depends=(hicolor-icon-theme)
+  optdepends=('php: for pprof2calltree' 'python2: for hotshot2calltree')
+
+  cd build
+  make DESTDIR="$pkgdir" install
+  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 desktop-file-utils)
+  optdepends=('graphviz: for plotting support')
+
+  install -Dm755 build/qcachegrind/qcachegrind -t "$pkgdir"/usr/bin/
+  install -Dm644 $pkgbase-$pkgver/qcachegrind/qcachegrind.desktop -t "$pkgdir"/usr/share/applications/
+}


More information about the arch-commits mailing list