distribution/packages/emulators/standalone/aethersx2-sa/package.mk

25 lines
954 B
Makefile
Raw Normal View History

2023-02-01 17:08:42 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
2023-03-17 16:40:00 +00:00
PKG_NAME="aethersx2-sa"
2023-02-01 17:08:42 +00:00
PKG_VERSION="v1.5-3606"
PKG_ARCH="aarch64"
PKG_LICENSE="LGPL"
PKG_SITE="https://www.aethersx2.com"
PKG_URL="${PKG_SITE}/archive/desktop/linux/AetherSX2-${PKG_VERSION}.AppImage"
PKG_DEPENDS_TARGET="toolchain qt5 libgpg-error fuse2"
2023-02-01 17:08:42 +00:00
PKG_LONGDESC="Arm PS2 Emulator appimage"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
# Redefine strip or the AppImage will be stripped rendering it unusable.
export STRIP=true
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/${PKG_NAME}-${PKG_VERSION}.AppImage ${INSTALL}/usr/bin/${PKG_NAME}
2023-04-03 04:48:56 +00:00
cp -rf ${PKG_DIR}/scripts/start_aethersx2.sh ${INSTALL}/usr/bin
2023-02-01 17:08:42 +00:00
sed -e "s/@APPIMAGE@/${PKG_NAME}/g" -i ${INSTALL}/usr/bin/start_aethersx2.sh
chmod 755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config
2023-04-02 21:03:25 +00:00
cp -rf ${PKG_DIR}/config/${DEVICE}/aethersx2 ${INSTALL}/usr/config
2023-02-01 17:08:42 +00:00
}