summaryrefslogblamecommitdiff
path: root/user/kcachegrind/APKBUILD
blob: 95c38e6e1496d6b0a27d9b836784689667e7ee48 (plain) (tree)
1
2
3
4


                                                  
              





































                                                                                            
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kcachegrind
pkgver=19.08.1
pkgrel=0
pkgdesc="Profile data visualisation tool and call graph viewer"
url="https://kcachegrind.github.io/html/Home.html"
arch="all"
license="GPL-2.0-only"
depends="binutils graphviz"
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev
	karchive-dev kconfig-dev kcoreaddons-dev kdoctools-dev ki18n-dev kio-dev
	kwidgetsaddons-dev kxmlgui-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/applications/$pkgver/src/kcachegrind-$pkgver.tar.xz"

build() {
	cd "$builddir"
	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=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="0283528e3252b04c611843c99d70b2206b6d590332234dc24c1a3de0057f407212a73d0e30c32049a061de41e8664e24b4ef7766036046f93bbfbff2d4a6f9a2  kcachegrind-19.08.1.tar.xz"