# Maintainer: Linus Swälas pkgname=xf86-video-amdgpu pkgver=23.0.0 pkgrel=2 pkgdesc="AMD Rx/HDxxxx video driver" url="https://xorg.freedesktop.org" arch="all" license="MIT" subpackages="$pkgname-doc" options="!check" depends="mesa-dri-gallium" makedepends=" eudev-dev libdrm-dev libpciaccess-dev libxi-dev mesa-dev pixman-dev util-macros xorg-server-dev xorgproto " source="https://www.x.org/releases/individual/driver/xf86-video-amdgpu-$pkgver.tar.xz" build() { export CFLAGS="${CFLAGS/-fno-plt}" export CXXFLAGS="${CXXFLAGS/-fno-plt}" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } sha512sums=" bf26f147629a34e84a0ae8435119e170b9c95edafcab1995b63bb8f55abef32f2efbf4536eb070e64b2ae1460424b1b27a4206cb9836d33ddc6dfbee404f718b xf86-video-amdgpu-23.0.0.tar.xz "