Subject: [PATCH] main/virglrenderer: upgrade to 0.8.0

From: Fernando Casas Schössow <[email-masked]>
Date: Wed, 23 Oct 2019 20:33:21 +0000

---
 main/virglrenderer/APKBUILD         | 16 +++++++---------
 main/virglrenderer/musl-fixes.patch | 20 --------------------
 2 files changed, 7 insertions(+), 29 deletions(-)

diff --git a/main/virglrenderer/APKBUILD b/main/virglrenderer/APKBUILD
index 743f3eae34..582b2dd528 100644
--- a/main/virglrenderer/APKBUILD
+++ b/main/virglrenderer/APKBUILD
@@ -1,34 +1,32 @@
 # Contributor: Fernando Casas Schossow <[email-masked]>
 # Maintainer: Fernando Casas Schossow <[email-masked]>
 pkgname=virglrenderer
-pkgver=0.7.0
+pkgver=0.8.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"
+makedepends="autoconf automake libtool file libdrm-dev mesa-dev libepoxy-dev"
 subpackages="$pkgname-dev $pkgname-doc"
-source="https://www.freedesktop.org/software/virgl/virglrenderer-$pkgver.tar.bz2
+source="https://github.com/freedesktop/virglrenderer/archive/virglrenderer-$pkgver.tar.gz
 	musl-fixes.patch"
-builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgname-$pkgver"
 
 build() {
-	cd "$builddir"
+	./autogen.sh
 	./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"
+sha512sums="281da72d0be9146fd7a63f2062222c001c6cb02a4420d5d11d8f3fe551a1e3c6e3420c91fb99d7480f26de0de85d9e8b1aae558f60e037169a99b4d09d3dc407  virglrenderer-0.8.0.tar.gz
+8f12548eb6ea3a2ac4f90ae74dbb338df0f57876104eb27e78d7acc184c0fe3b192636001606197a59b9cb286e8417579e41df3e132999ab0e3472d6604f8a3e  musl-fixes.patch"
diff --git a/main/virglrenderer/musl-fixes.patch b/main/virglrenderer/musl-fixes.patch
index 1e4210720a..2f6c806549 100644
--- a/main/virglrenderer/musl-fixes.patch
+++ b/main/virglrenderer/musl-fixes.patch
@@ -9,23 +9,3 @@
  #include <endian.h>
  
  #if __BYTE_ORDER == __LITTLE_ENDIAN
---- a/vtest/util.c
-+++ b/vtest/util.c
-@@ -26,6 +26,7 @@
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
-+#include <sys/select.h>
- 
- int vtest_wait_for_fd_read(int fd)
- {
---- a/vtest/vtest_server.c
-+++ b/vtest/vtest_server.c
-@@ -31,6 +31,7 @@
- #include <netinet/in.h>
- #include <sys/un.h>
- #include <fcntl.h>
-+#include <string.h>
- 
- #include "util.h"
- #include "vtest.h"
-- 
2.22.0