Subject: [PATCH] testing/libretro-beetle-psx: new aport

From: Bart Ribbers <[email-masked]>
Date: Sun, 11 Aug 2019 03:54:58 +0200

---
 testing/libretro-beetle-psx/APKBUILD | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/testing/libretro-beetle-psx/APKBUILD b/testing/libretro-beetle-psx/APKBUILD
index a8691c1383..012c3c70a1 100644
--- a/testing/libretro-beetle-psx/APKBUILD
+++ b/testing/libretro-beetle-psx/APKBUILD
@@ -15,17 +15,26 @@ subpackages="$pkgname-hw"
 builddir="$srcdir/$_pkgname-$_commit"
 options="!check" # No tests
 
+prepare() {
+	default_prepare
+
+	mkdir -p "$srcdir"/libretro-beetle-psx && mkdir -p "$srcdir"/libretro-beetle-psx-hw
+	cp -r "$builddir"/* "$srcdir"/libretro-beetle-psx && cp -r "$builddir"/* "$srcdir"/libretro-beetle-psx-hw
+	mv "$srcdir"/libretro-beetle-psx "$builddir"
+	mv "$srcdir"/libretro-beetle-psx-hw "$builddir"
+}
+
 build() {
-	make
-	HAVE_HW=1 make
+	make -C libretro-beetle-psx
+	HAVE_HW=1 make -C libretro-beetle-psx-hw
 }
 
 package() {
-	install -Dm644 mednafen_psx_libretro.so "$pkgdir"/usr/lib/libretro
+	install -Dm644 "$builddir"/libretro-beetle-psx/mednafen_psx_libretro.so "$pkgdir"/usr/lib/libretro
 }
 
 hw() {
-	install -Dm644 mednafen_psx_hw_libretro.so "$pkgdir"/usr/lib/libretro
+	install -Dm644 "$builddir"/libretro-beetle-psx-hw/mednafen_psx_hw_libretro.so "$subpkgdir"/usr/lib/libretro
 }
 
 sha512sums="e8f2cbb6823ee3b1bedc137a1de5b681e86c9e11d04a00fd7e7496dad613b9e07bb56c64d588ec82551e09d869b62cbf5c5a630ce72fc7452cb38fd97a026c45  libretro-beetle-psx-7b584a4ce05968482a1e5e3719ba341807f42277.tar.gz"
-- 
2.21.0