summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f6bc3bfb0c109b13f919901675cd0b34ed26855 (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
# Maintainer: Justin Kim <justin.joy.9to5@gmail.com>

pkgname=hawktracer
pkgver=0.7.0
pkgrel=2
pkgdesc='HawkTracer - a highly portable, low-overhead, configurable profiling tool'
arch=('i686' 'x86_64')
url='https://github.com/loganek/hawktracer'
license=('MIT')
makedepends=('cmake')
provides=('hawktracer')
conflicts=('hawktracer-git')
source=('https://github.com/loganek/hawktracer/archive/v0.7.0.tar.gz')
sha512sums=('24581d02d06dfa879621b487674785452ac4bc73f98b72a715b2175bf6fbd1b4ff598f5d29bdaf9e4b50aec6c1cee968000776e9f5df905e6d147827e0adcb90')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    
    mkdir -p build
    cd build
    cmake \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        ..

    cmake --build .
}

package() {
    cd "$srcdir/$pkgname-$pkgver/build"
    
    make DESTDIR="$pkgdir" install
}