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

24 lines
871 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present Fewtarius
2023-03-17 16:40:00 +00:00
PKG_NAME="pcsx2-sa"
PKG_VERSION="v1.7.4709"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/pcsx2/pcsx2"
2023-02-17 00:55:07 +00:00
PKG_URL="${PKG_SITE}/releases/download/${PKG_VERSION}/pcsx2-${PKG_VERSION}-linux-AppImage-64bit-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
}