summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbb5a730a42e8a8f8574a09232b898bb28b33d8f (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
# Maintainer: Chiu-Hsiang Hsu <wdv4758h@gmail.com>

pkgname=igprof-git
pkgver=v5.9.16.r0.g96debaf
pkgrel=1
pkgdesc="A simple tool for measuring and analysing application memory and performance characteristics"
arch=('i686' 'x86_64')
url="http://igprof.org/"
license=('GPL')
groups=()
depends=('libatomic_ops'
         'libunwind'
         'pcre'
         'python')
makedepends=('cmake')
source=("$pkgname::git+https://github.com/igprof/igprof/")
md5sums=('SKIP')

pkgver() {
    cd $pkgname
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/release.//g'
}

build() {
    cd $pkgname
    sed -i 's|-Werror||g' CMakeLists.txt
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3" .
    make
}

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