diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2020-01-14 10:32:31 +0100 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-01-15 20:27:43 +0100 |
commit | cdfbe6fba6c42259f1adb51ec2b07204b48b49ae (patch) | |
tree | 8e6be9538256129b36ec9f5453506ac5167d0f30 /testing/hotspot | |
parent | 30eee905a5ced301381bacca1012fa8e35d5552c (diff) | |
download | aports-cdfbe6fba6c42259f1adb51ec2b07204b48b49ae.tar.bz2 aports-cdfbe6fba6c42259f1adb51ec2b07204b48b49ae.tar.xz |
testing/hotspot: new aport
https://github.com/KDAB/hotspot
The Linux perf GUI for performance analysis
Diffstat (limited to 'testing/hotspot')
-rw-r--r-- | testing/hotspot/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/hotspot/APKBUILD b/testing/hotspot/APKBUILD new file mode 100644 index 0000000000..224747614d --- /dev/null +++ b/testing/hotspot/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=hotspot +pkgver=1.2.0 +pkgrel=0 +pkgdesc="The Linux perf GUI for performance analysis" +url="https://github.com/KDAB/hotspot" +arch="all !s390x" # undefined reference to 'QDataStream::Version qbswap<QDataStream::Version>(QDataStream::Version)' +license="GPL-2.0-or-later" +makedepends="cmake qt5-qtbase-dev elfutils-dev gettext-dev extra-cmake-modules + threadweaver-dev ki18n-dev kconfigwidgets-dev kcoreaddons-dev kitemviews-dev + kitemmodels-dev kio-dev solid-dev kwindowsystem-dev" +source="https://github.com/KDAB/hotspot/releases/download/v$pkgver/hotspot-v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-v$pkgver" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} . + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir"/usr/share/applications + cp hotspot.desktop "$pkgdir"/usr/share/applications +} + +sha512sums="65b00a8c4ff3a0533691125b9c45f8114fa622aecb809429aae49c500e3e289162f7e02cdb9af469d2a95dae3c9e7bb859311c85db74425497a1676000b928e2 hotspot-v1.2.0.tar.gz" |