blob: fb5e653a10e5860f9e2cb589b47d6156c39c8782 (
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
41
42
43
44
|
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=heaptrack-git
pkgver=1121.66a7ba4
pkgrel=1
pkgdesc="A heap memory profiler"
arch=('i686' 'x86_64')
url="http://milianw.de/tag/heaptrack"
license=('APACHE')
depends=('libunwind' 'boost-libs' 'hicolor-icon-theme')
optdepends=('kdiagram: GUI support - heaptrack_gui'
'kio: GUI support - heaptrack_gui'
'threadweaver: GUI support - heaptrack_gui')
makedepends=('git' 'extra-cmake-modules' 'boost' 'sparsehash' 'kdiagram' 'threadweaver' 'kitemmodels' 'kio')
provides=('heaptrack')
conflicts=('heaptrack')
source=('heaptrack::git+https://invent.kde.org/sdk/heaptrack.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/heaptrack"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
prepare() {
mkdir -p "$srcdir/build"
}
build() {
cd "$srcdir/build"
export CXXFLAGS="$CXXFLAGS -lboost_iostreams"
cmake ../heaptrack \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|