aboutsummaryrefslogtreecommitdiffstats
path: root/community/xf86-video-amdgpu/APKBUILD
blob: 641ad964abcbcc16676713542a0d4209cb641d98 (plain) (blame)
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
# Maintainer: Linus Swälas <linus.swalas@borderless.se>
pkgname=xf86-video-amdgpu
pkgver=19.1.0
pkgrel=0
pkgdesc="AMD Rx/HDxxxx video driver"
url="https://xorg.freedesktop.org"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
options="!check"
depends="mesa-dri-ati"
makedepends="xorg-server-dev libxi-dev libdrm-dev mesa-dev eudev-dev pixman-dev
	util-macros xorgproto libpciaccess-dev"
source="https://www.x.org/releases/individual/driver/xf86-video-amdgpu-$pkgver.tar.bz2
	gcc-10.patch
	"

build() {
	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="ccdaa2378492da1a2f3d18fedacd1318c4708da534a8a959276a82730d5420619d83ad1ec8d7835c55655fe56123cd9bffb44e6223c5a97033c01f598af4a173  xf86-video-amdgpu-19.1.0.tar.bz2
69922a73ed04d0aa7bca9a588a5b1a39833e7bdc66984b44b691a5163633952ee4ad4e741b7098d0642fe79d07784272dc8dfb010f63675e2586cb2dba6c15cf  gcc-10.patch"