distribution/packages/games/emulators/pcsx2sa/package.mk

24 lines
875 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present Fewtarius
2022-09-11 21:10:06 +00:00
PKG_NAME="pcsx2sa"
2022-12-04 17:02:03 +00:00
PKG_VERSION="v1.7.3674"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/pcsx2/pcsx2"
PKG_URL="${PKG_SITE}/releases/download/${PKG_VERSION}/pcsx2-${PKG_VERSION}-linux-AppImage-64bit-AVX2-Qt.AppImage"
PKG_LONGDESC="PS2 Emulator appimage"
PKG_TOOLCHAIN="manual"
2022-09-13 22:49:46 +00:00
makeinstall_target() {
# Redefine strip or the AppImage will be stripped rendering it unusable.
export STRIP=true
2022-09-13 22:49:46 +00:00
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/${PKG_NAME}-${PKG_VERSION}.AppImage ${INSTALL}/usr/bin/${PKG_NAME}
cp -rf ${PKG_DIR}/sources/start_pcsx2.sh ${INSTALL}/usr/bin
sed -e "s/@APPIMAGE@/${PKG_NAME}/g" -i ${INSTALL}/usr/bin/start_pcsx2.sh
chmod 755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config
cp -rf ${PKG_DIR}/config/PCSX2 ${INSTALL}/usr/config
2022-09-13 22:49:46 +00:00
}