Date: Friday, March 9, 2018 @ 09:23:13 Author: arojas Revision: 318301
archrelease: copy trunk to extra-x86_64 Added: kcachegrind/repos/extra-x86_64/PKGBUILD (from rev 318300, kcachegrind/trunk/PKGBUILD) Deleted: kcachegrind/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 132 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-09 09:22:57 UTC (rev 318300) +++ PKGBUILD 2018-03-09 09:23:13 UTC (rev 318301) @@ -1,65 +0,0 @@ -# $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> - -pkgbase=kcachegrind -pkgname=(kcachegrind kcachegrind-common qcachegrind) -pkgver=17.12.3 -pkgrel=2 -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 python qt5-tools kio) -source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}) -sha256sums=('0d9670aa3b96e9d5ad2a110965c523922138786e8c00de9e2aee59dd46405ddb' - '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_kcachegrind() { - groups=(kde-applications kdesdk) - depends=(kio kcachegrind-common) - conflicts=(kdesdk-kcachegrind) - replaces=(kdesdk-kcachegrind) - - cd build - make DESTDIR="$pkgdir" install - rm -r "$pkgdir"/usr/{bin/*tree,share/{doc,icons,locale}} -} - -package_kcachegrind-common() { - pkdesc+=' (common files)' - depends=(hicolor-icon-theme) - optdepends=('php: PHP support' 'graphviz: for plotting support' 'python2: for hotshot2calltree') - - cd build - make DESTDIR="$pkgdir" install - rm -r "$pkgdir"/usr/{bin/kcachegrind,share/{kxmlgui5,kcachegrind,applications}} # 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) - - install -Dm755 build/qcachegrind/qcachegrind -t "$pkgdir"/usr/bin/ - install -Dm644 $pkgbase-$pkgver/qcachegrind/qcachegrind.desktop -t "$pkgdir"/usr/share/applications/ -} Copied: kcachegrind/repos/extra-x86_64/PKGBUILD (from rev 318300, kcachegrind/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-09 09:23:13 UTC (rev 318301) @@ -0,0 +1,67 @@ +# $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> + +pkgbase=kcachegrind +pkgname=(kcachegrind kcachegrind-common qcachegrind) +pkgver=17.12.3 +pkgrel=3 +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 python qt5-tools kio) +source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}) +sha256sums=('0d9670aa3b96e9d5ad2a110965c523922138786e8c00de9e2aee59dd46405ddb' + '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_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/{kxmlgui5,kcachegrind,applications}} # 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/qcachegrind/qcachegrind -t "$pkgdir"/usr/bin/ + install -Dm644 $pkgbase-$pkgver/qcachegrind/qcachegrind.desktop -t "$pkgdir"/usr/share/applications/ +}