[arch-commits] Commit in (3 files)

Antonio Rojas arojas at archlinux.org
Sat Mar 25 07:53:25 UTC 2017


    Date: Saturday, March 25, 2017 @ 07:53:24
  Author: arojas
Revision: 291485

Add KF5 version of kcachegrind

Added:
  kcachegrind/
  kcachegrind/kde-unstable/
  kcachegrind/kde-unstable/PKGBUILD

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

Added: kcachegrind/kde-unstable/PKGBUILD
===================================================================
--- kcachegrind/kde-unstable/PKGBUILD	                        (rev 0)
+++ kcachegrind/kde-unstable/PKGBUILD	2017-03-25 07:53:24 UTC (rev 291485)
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 290221 2017-03-09 16:12:45Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kcachegrind
+pkgver=17.03.80
+pkgrel=1
+pkgdesc='Visualization of Performance Profiling Data'
+url='https://kde.org/applications/development/kcachegrind/'
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+groups=(kde-applications kdesdk)
+depends=(kio hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools python)
+optdepends=('php: PHP support' 'graphviz: for plotting support')
+conflicts=(kdesdk-kcachegrind)
+replaces=(kdesdk-kcachegrind)
+source=("https://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
+sha256sums=('d2fa37c280093591dfac4f5e66187d1a28e7aea398358c4f0944f81858d3d446'
+            'SKIP')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid at kde.org>
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_TESTING=OFF
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "$pkgdir"/usr/bin/hotshot2calltree
+}



More information about the arch-commits mailing list