distribution/packages/compat/box64/package.mk

33 lines
1.1 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="box64"
2023-12-15 16:33:23 +00:00
PKG_VERSION="211fee2e4e4ce1f7132660469df613df5a74ac88"
PKG_ARCH="aarch64"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/ptitSeb/box64"
PKG_URL="${PKG_SITE}.git"
2023-06-29 20:10:01 +00:00
PKG_DEPENDS_TARGET="toolchain ncurses SDL_sound"
PKG_LONGDESC="Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux systems, like ARM."
PKG_TOOLCHAIN="cmake"
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_BUILD_TYPE=Release"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/share/box64/lib
cp ${PKG_BUILD}/x64lib/* ${INSTALL}/usr/share/box64/lib
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/.${TARGET_NAME}/box64 ${INSTALL}/usr/bin
2023-03-03 17:35:29 +00:00
cp ${PKG_BUILD}/tests/bash ${INSTALL}/usr/bin/bash-x64
2023-03-05 17:09:43 +00:00
mkdir -p ${INSTALL}/usr/config
cp ${PKG_DIR}/config/box64.box64rc ${INSTALL}/usr/config/box64.box64rc
mkdir -p ${INSTALL}/etc
ln -sf /storage/.config/box64.box64rc ${INSTALL}/etc/box64.box64rc
mkdir -p ${INSTALL}/etc/binfmt.d
2023-03-05 16:12:48 +00:00
cp -f ${PKG_DIR}/config/box64.conf ${INSTALL}/etc/binfmt.d/box64.conf
}