aboutsummaryrefslogtreecommitdiffstats
path: root/main/virglrenderer/APKBUILD
blob: 743f3eae34e766cf4a711800b35c37472a9b20ae (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=1
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
b19e8a63f850cfefd257a6bdcc4066d949ce2ab91221d3ddfe75292967dc89da4f499bd4cf3eb98814e1b516241a7c6ca6f3aa5eaa097f17ff212669a69a4985  musl-fixes.patch"