aports/testing/libretro-pcsx-rearmed/APKBUILD

33 lines
1.1 KiB
Text

# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-pcsx-rearmed
pkgver=0_git20220409
pkgrel=0
_commit="e24732050e902bd5402b2b7da7c391d2ca8fa799"
pkgdesc="ARM optimized PCSX fork for libretro"
url="https://github.com/libretro/pcsx_rearmed"
# loongarch64: upstream code already supports the loongarch64.
arch="all !armv7 !armhf !loongarch64"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/pcsx_rearmed/archive/$_commit.tar.gz"
builddir="$srcdir/pcsx_rearmed-$_commit"
options="!check" # No tests
# Handled by multiple conditionals in the Makefile but not working correctly
# for the aarch64 platform.
case "$CARCH" in
aarch64)
with_dynarec="DYNAREC=ari64" ;;
esac
build() {
make -f Makefile.libretro $with_dynarec
}
package() {
install -Dm644 pcsx_rearmed_libretro.so "$pkgdir"/usr/lib/libretro/pcsx_rearmed_libretro.so
}
sha512sums="
621972462c230c19241a2ba14098987524488ec3d053b609fb9fc870b4ef3b6f2f7a44f6f97b9376a0c17ff7b465b5963962b44fc50dfa982509fdab2403860f libretro-pcsx-rearmed-e24732050e902bd5402b2b7da7c391d2ca8fa799.tar.gz
"