aboutsummaryrefslogtreecommitdiffstats
path: root/main/virglrenderer/APKBUILD
blob: 076689d43b4bf002bb8dedca083d53774f6a27f2 (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
# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
pkgname=virglrenderer
pkgver=0.7.0
pkgrel=0
pkgdesc="A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering"
url="https://virgil3d.github.io/"
arch="all"
license="MIT"
makedepends="file libdrm-dev mesa-dev libepoxy-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.freedesktop.org/software/virgl/virglrenderer-$pkgver.tar.bz2
	musl-fixes.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

check() {
	cd "$builddir"
	make check
}

sha512sums="05e9a5a27450ad0d7b6b0002d4c4e90fc397fcd4cb014ad4356d0c07dd89b81fcfc4ab2c6eba094ed2612afbdeb28eb969290dd05a22dc462b1e68d52502f5bf  virglrenderer-0.7.0.tar.bz2
450c3f9d2fa07ad61379f2761dcd623e65b52ffd755255f9f479b48aec9bafb1f1dd3766db5e3d0b5e78daf4f9eeb99a645b829356d16f1f84c90a3d97b4abe5  musl-fixes.patch"