summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1926e6c688393041b64f9235a0b9cc8f0192eabf (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
36
37
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=austin-git
pkgver=v2.1.1.r0.g2f29bd7
pkgrel=1
pkgdesc='Python frame stack sampler for CPython'
arch=('x86_64' 'armv7h' 'aarch64')
url='https://github.com/P403n1x87/austin'
license=('GPL3')
makedepends=('git')
conflicts=('austin')
provides=("austin")

source=('git+https://github.com/P403n1x87/austin')
sha1sums=('SKIP')

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

prepare() {
    cd austin
    autoreconf --install
    mkdir build
}

build() {
    cd austin/build
    ../configure --prefix=/usr
    make
}

package() {
    cd austin/build
    make DESTDIR="$pkgdir" install
}