summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukáš Jirkovský2015-07-02 20:59:48 +0200
committerLukáš Jirkovský2015-07-02 20:59:48 +0200
commit6845025cbd132eb15cfbcfc91857f81df5e0bb04 (patch)
tree0b7790c658a2fb534f4fc460565892dd56ea9b77
downloadaur-6845025cbd132eb15cfbcfc91857f81df5e0bb04.tar.gz
initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD39
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..10e8be96b33
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = heaptrack-git
+ pkgdesc = A heap memory profiler
+ pkgver = 1
+ pkgrel = 1
+ url = http://milianw.de/tag/heaptrack
+ arch = x86_64
+ license = APACHE
+ makedepends = git
+ makedepends = cmake
+ makedepends = boost
+ depends = libunwind
+ depends = elfutils
+ depends = boost-libs
+ source = git+git://anongit.kde.org/heaptrack
+ md5sums = SKIP
+
+pkgname = heaptrack-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..490da8b9339
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+pkgname=heaptrack-git
+pkgver=1
+pkgrel=1
+pkgdesc="A heap memory profiler"
+arch=('x86_64')
+url="http://milianw.de/tag/heaptrack"
+license=('APACHE')
+depends=('libunwind' 'elfutils' 'boost-libs')
+makedepends=('git' 'cmake' 'boost')
+source=('git+git://anongit.kde.org/heaptrack')
+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: