diff options
Diffstat (limited to 'community/libretro-beetle-psx')
-rw-r--r-- | community/libretro-beetle-psx/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/libretro-beetle-psx/APKBUILD b/community/libretro-beetle-psx/APKBUILD new file mode 100644 index 0000000000..fab12f72fc --- /dev/null +++ b/community/libretro-beetle-psx/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=libretro-beetle-psx +pkgver=0_git20191227 +pkgrel=0 +_commit="18a9de19f3f079408eb8181aa4c5144e9434c5f7" +arch="all !s390x" +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/beetle-psx-libretro/archive/$_commit.tar.gz" +subpackages="$pkgname-hw" +builddir="$srcdir/beetle-psx-libretro-$_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="896209e20341d7cc7e38c2b3ac881feb8bcd1322d95d48f57ba2cb14bee6b62b7187ff10c3806a2753b1af0f0f887d2dc3635aee268c432424f3150912938a75 libretro-beetle-psx-18a9de19f3f079408eb8181aa4c5144e9434c5f7.tar.gz" |