# Maintainer: Florian Lindner pkgname=hotspot pkgver=1.3.0 pkgrel=1 pkgdesc="The Linux perf GUI for performance analysis" arch=('any') url="https://github.com/KDAB/hotspot" license=('GPL2') depends=('qt5-base>=5.6.0' 'libelf' 'elfutils' 'threadweaver' 'ki18n' 'kconfig' 'kio' 'kitemviews' 'kcoreaddons' 'kitemmodels' 'kconfigwidgets' 'solid' 'rustc-demangle') makedepends=('cmake>=3.1.0' 'extra-cmake-modules' 'desktop-file-utils') provides=("${pkgname}") conflicts=("${pkgname}-git") source=("https://github.com/KDAB/hotspot/releases/download/v${pkgver}/hotspot-v${pkgver}.tar.gz") sha1sums=('3fe86a97291a6c9cefc2d0a16e9b5379aa1a831c') build() { cd "${pkgname}-v${pkgver}" cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DRUSTC_DEMANGLE_INCLUDE_DIR=/usr/include/rustc-demangle \ -DRUSTC_DEMANGLE_LIBRARY=/usr/lib/rustc-demangle/librustc_demangle.so make } package() { cd "${pkgname}-v${pkgver}" make DESTDIR="${pkgdir}/" install desktop-file-install hotspot.desktop --dir="${pkgdir}/usr/share/applications/" }