distribution/packages/games/tools/351files/package.mk
Brooksytech 685691ac7f
Update 351files to latest commit
Resolution width and height is swapped and font size is to small.

Also updating to latest commit of 351files
2022-02-24 11:29:32 -08:00

27 lines
947 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present 351ELEC (https://github.com/351elec)
PKG_NAME="351files"
PKG_VERSION="a7bb75dafca5c3f8e50e0f456b7ec249a69e1346"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/Tardigrade-nx/351Files"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain SDL2 SDL2_image SDL2_gfx SDL2_ttf"
PKG_PRIORITY="optional"
PKG_SECTION="tools"
PKG_SHORTDESC="A Single panel file Manager tailored for Anbernic 351 devices: RG351V/MP and RG351P/M. Can be easily adapted to any Linux-based device."
PKG_PATCH_DIRS="${DEVICE}"
make_target() {
make DEVICE=${DEVICE} RES_PATH=/usr/share/351files/res START_PATH=/storage/roms SDL2_CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config CC=$CXX
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
mkdir -p $INSTALL/usr/share/351files
cp 351Files $INSTALL/usr/bin/
cp -rf res $INSTALL/usr/share/351files/
}