upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / intel-gpu-tools / trunk / PKGBUILD
blob25f0606f3e951d0851228011a4d895167acf87d4
1 # Maintainer: Daniel Micay <danielmicay@gmail.com>
2 # Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
3 # Originally by: Denis Smirnov <detanator@gmail.com>
5 _pkgname=igt-gpu-tools
6 pkgname=intel-gpu-tools
7 pkgver=1.27
8 pkgrel=1
9 pkgdesc="Tools for development and testing of the Intel DRM driver"
10 arch=(x86_64)
11 license=(MIT)
12 url='https://gitlab.freedesktop.org/drm/igt-gpu-tools'
13 depends=(libdrm libpciaccess cairo python xorg-xrandr procps-ng kmod libxv libunwind peg systemd)
14 makedepends=(swig gtk-doc xorg-util-macros xorgproto meson)
15 source=(https://xorg.freedesktop.org/releases/individual/app/${_pkgname}-$pkgver.tar.xz{,.sig}
16         remove-race-in-creating-batch-buffers.patch
17         remove-crc32-table-from-common-section.patch)
18 sha512sums=('43728c1981862f48180652849fbf04e36f976ae39a20f166fd5b4413ad3d682f7eea5db27c53d48d88d516577b053a6cc5afe000d1cad19ba65dedc248edf4a6'
19             'SKIP'
20             '91abc467d594fd97784f5843853c53bd812445f956c0f299a1127a2d758416485a7bb5c9bda764c7ce2ce133b9aa4bb6076a20a307261a18274d7f61623f142f'
21             '2053f4e30752bd6ebf735ba5f629f68899c31b2984d5a0fcfc8c11bdd09223308f9f5c7bb3bd8dfe5c57341ef89ccb87235a5f0c14e2439d7451d5eb4cfa845a')
22 validpgpkeys=('775965B85650195ACE77E18D7370055DB74C2475'
23               'E1996E8A119F43C4BA2BE889D8C620766EA3F69D')
25 prepare() {
26   mkdir -p build
27   cd igt-gpu-tools-${pkgver}
28   patch -Np1 -i ${srcdir}/remove-race-in-creating-batch-buffers.patch
29   patch -Np1 -i ${srcdir}/remove-crc32-table-from-common-section.patch
32 build() {
33   cd build
34   meson ../$_pkgname-$pkgver \
35     --prefix=/usr \
36     --libexecdir=/usr/lib
38   ninja
41 check() {
42   cd build
43   ninja test
46 package() {
47   cd build
48   DESTDIR="$pkgdir" ninja install
50   cd ../$_pkgname-$pkgver
51   install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING"