7649aea07b
* Fix a bug in the update_packages tool
29 lines
1 KiB
Makefile
29 lines
1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2021-present 351ELEC (https://github.com/351elec)
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
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/
|
|
chmod 0755 ${INSTALL}/usr/bin/351Files
|
|
}
|