summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bafa74f3ed70f021d43d4a91d8cb64ce92ab372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer:  Florian Lindner <florian.lindner@xgm.de>
# Contributor: Jon Gjengset <jon@thesquareplanet.com>

pkgname=hotspot-git
pkgver=1.4.1.r225.g89c3808
pkgrel=1
pkgdesc="The Linux perf GUI for performance analysis"
arch=('any')
url="https://github.com/KDAB/hotspot"
license=('GPL2')
depends=('elfutils' 'kcoreaddons5' 'kddockwidgets' 'ki18n5' 'kconfig5' 'kio5' 'kitemviews5'  'kitemmodels5' 'kconfigwidgets5' 'kparts5' 'libelf' 'qt5-base>=5.6.0' 'solid5' 'threadweaver5')
makedepends=('git' 'cmake>=3.1.0' 'extra-cmake-modules' 'desktop-file-utils')
optdepends=('rustc-demangle>=0.1.18-2: rustc symbols demangling') 
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "${pkgname%-git}"
    git submodule update --init --recursive
}

build() {
    cd "${pkgname%-git}"
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
            -DBUILD_TESTING=off
    cmake --build .
}

package() {
    cd "${pkgname%-git}"
    DESTDIR="${pkgdir}/" cmake --install .
    desktop-file-install com.kdab.hotspot.desktop --dir="${pkgdir}/usr/share/applications/"
}