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

pkgname=xtruss-git
# Note that the date here might not match the date on the released tarball;
# we have no control over this, no need to report that :)
pkgver=20211024.c25bf48
pkgrel=1
pkgdesc="X11 protocol tracer, akin to strace"
arch=(x86_64)
url="https://www.chiark.greenend.org.uk/~sgtatham/xtruss/"
license=(MIT)
source=('git+https://git.tartarus.org/simon/xtruss.git')
sha256sums=('SKIP')
makedepends=(cmake git)
conflicts=(xtruss)
provides=(xtruss)

pkgver() {
  cd xtruss
  printf '%s.%s' \
    $(git show --no-patch --format=%cs HEAD | tr -d -) \
    $(git rev-parse --short=7 HEAD)
}

build() {
  cmake \
    -S xtruss \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}