distribution/packages/games/emulators/rpcs3sa/package.mk.old
2023-02-08 23:08:18 +00:00

30 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="rpcs3sa"
PKG_VERSION="5a63271f0ea2fd2bb7aa866c85ca80a03992ef92"
PKG_RELEASE="v0.0.26-14690-5a63271f"
PKG_ARCH="x86_64"
PKG_LICENSE="LGPL"
PKG_SITE="https://github.com/RPCS3/rpcs3-binaries-linux/releases/download/build"
PKG_URL="${PKG_SITE}-${PKG_VERSION}/rpcs3-${PKG_RELEASE}_linux64.AppImage"
PKG_DEPENDS_TARGET="toolchain qt5 libSM libp11 libp11-kit libevdev curl ffmpeg libpng zlib vulkan-loader vulkan-headers"
PKG_LONGDESC="PS3 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/lib
cp -rf ${PKG_DIR}/lib/* ${INSTALL}/usr/lib
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/*.AppImage ${INSTALL}/usr/bin/${PKG_NAME}
cp -rf ${PKG_DIR}/scripts/start_rpcs3sa.sh ${INSTALL}/usr/bin
sed -e "s/@APPIMAGE@/${PKG_NAME}/g" -i ${INSTALL}/usr/bin/start_rpcs3sa.sh
chmod 755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config
cp -rf ${PKG_DIR}/config/rpcs3 ${INSTALL}/usr/config
}