summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a37a720d6e239c9f23ee8d3fc82d99ad03b2ec66 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=uftrace-git
pkgver=0.13.1+55.g3d728c5
pkgrel=1
pkgdesc="Function graph tracer for C/C++/Rust"
arch=(x86_64)
url="https://github.com/namhyung/uftrace"
license=('GPL2')
provides=("uftrace=${pkgver%+*}")
conflicts=('uftrace')
source=("git+$url")
sha1sums=('SKIP')
makedepends=('git' 'pandoc')
depends=('libelf' 'python3' 'ncurses' 'pkgconf' 'luajit' 'capstone' 'libunwind')

# Disable LTO due to upstream issue
# https://github.com/namhyung/uftrace/issues/1343
options=('!lto')

pkgver() {
  cd "$srcdir"/uftrace
  git describe --long --tags --abbrev=7 | sed 's/^v//; s/-/+/; s/-/\./'
}

build() {
  cd "$srcdir"/uftrace
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/uftrace
  make DESTDIR="$pkgdir/" install
}