summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 698bbf74a8ad3c1b05400b87ce3cb9e2d61ac4a7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=igt-gpu-tools
pkgver=1.28
pkgrel=1
pkgdesc="Collection of tools for development and testing of the DRM drivers."
url="https://gitlab.freedesktop.org/drm/igt-gpu-tools"
arch=(x86_64 aarch64)
license=(custom)
makedepends=(
  meson
  ninja
)
depends=(
  alsa-lib
  cairo
  glib2
  gsl
  gtk-doc
  json-c
  kmod
  libdrm
  libelf
  liboping
  libpciaccess
  libprocps
  libunwind
  libxmlrpc
  libxrandr
  libxv
  peg
  pixman
  procps-ng
  python-docutils
  systemd-libs
  valgrind
  zlib
)
source=("$url/-/archive/v$pkgver/igt-gpu-tools-v$pkgver.tar.gz")
sha256sums=('ba15b321c5a90da629baf326912c9c0406a903719040eb4959e0af1197935133')

prepare() {
  MESON_OPTS=()
  if [ $CARCH != x86_64 ]
  then
    # overlay is x86-only
    MESON_OPTS+=(-D overlay=disabled)
  fi
  arch-meson "$pkgname-v$pkgver" build "${MESON_OPTS[@]}"
}

build() {
  ninja -C build
  ninja -C build igt-gpu-tools-doc
}

# several tests are timing out
# false &&
check() {
  ninja -C build test
}

package() {
  DESTDIR="$pkgdir" ninja -C build install

  install -Dm644 "$pkgname-v$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}