diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-08-11 03:57:06 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-11 11:47:20 -0300 |
commit | c7d8369e998bdda315a166238a4acced7c144b37 (patch) | |
tree | f13208573b83d61e681951241bcd6ab8504dee66 /testing | |
parent | 341f1170f4d0f16f73462d36c1b06e6c87184cf6 (diff) | |
download | aports-c7d8369e998bdda315a166238a4acced7c144b37.tar.bz2 aports-c7d8369e998bdda315a166238a4acced7c144b37.tar.xz |
testing/libretro-beetle-psx: new aport
https://github.com/libretro/beetle-psx-libretro
Standalone port/fork of Mednafen PSX to the Libretro API
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libretro-beetle-psx/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/libretro-beetle-psx/APKBUILD b/testing/libretro-beetle-psx/APKBUILD new file mode 100644 index 0000000000..012c3c70a1 --- /dev/null +++ b/testing/libretro-beetle-psx/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=libretro-beetle-psx +_pkgname=beetle-psx-libretro +pkgver=0_git20190802 +pkgrel=0 +_commit="7b584a4ce05968482a1e5e3719ba341807f42277" +arch="all" +url="https://github.com/libretro/beetle-psx-libretro" +pkgdesc="Standalone port/fork of Mednafen PSX to the Libretro API" +license="GPL-2.0-or-later" +makedepends="mesa-dev" +source="$pkgname-$_commit.tar.gz::https://github.com/libretro/$_pkgname/archive/$_commit.tar.gz" +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 -C libretro-beetle-psx + HAVE_HW=1 make -C libretro-beetle-psx-hw +} + +package() { + install -Dm644 "$builddir"/libretro-beetle-psx/mednafen_psx_libretro.so "$pkgdir"/usr/lib/libretro +} + +hw() { + install -Dm644 "$builddir"/libretro-beetle-psx-hw/mednafen_psx_hw_libretro.so "$subpkgdir"/usr/lib/libretro +} + +sha512sums="e8f2cbb6823ee3b1bedc137a1de5b681e86c9e11d04a00fd7e7496dad613b9e07bb56c64d588ec82551e09d869b62cbf5c5a630ce72fc7452cb38fd97a026c45 libretro-beetle-psx-7b584a4ce05968482a1e5e3719ba341807f42277.tar.gz" |