Date: Friday, November 17, 2017 @ 18:48:06 Author: arojas Revision: 310277
archrelease: copy kde-unstable to kde-unstable-x86_64 Added: kcachegrind/repos/kde-unstable-x86_64/ kcachegrind/repos/kde-unstable-x86_64/PKGBUILD (from rev 310276, kcachegrind/kde-unstable/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: kcachegrind/repos/kde-unstable-x86_64/PKGBUILD (from rev 310276, kcachegrind/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-x86_64/PKGBUILD (rev 0) +++ kde-unstable-x86_64/PKGBUILD 2017-11-17 18:48:06 UTC (rev 310277) @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 290221 2017-03-09 16:12:45Z arojas $ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=kcachegrind +pkgver=17.11.80 +pkgrel=1 +pkgdesc='Visualization of Performance Profiling Data' +url='https://kde.org/applications/development/kcachegrind/' +arch=(x86_64) +license=(GPL LGPL FDL) +groups=(kde-applications kdesdk) +depends=(kio hicolor-icon-theme) +makedepends=(extra-cmake-modules kdoctools python qt5-tools) +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=('8dec1b845ae0f60c77be94f4a1495131d24924655323f50310701c439939b847' + 'SKIP') +validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aa...@kde.org> + F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cf...@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 +}