# Maintainer: Eric Engestrom 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 }