2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present 351ELEC (https://github.com/351elec)
2022-03-18 10:39:38 +00:00
# Copyright (C) 2022-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME = "351files"
2022-02-24 19:29:32 +00:00
PKG_VERSION = "a7bb75dafca5c3f8e50e0f456b7ec249a69e1346"
2022-02-05 14:23:32 +00:00
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
PKG_SITE = "https://github.com/Tardigrade-nx/351Files"
2022-03-18 10:39:38 +00:00
PKG_URL = " ${ PKG_SITE } /archive/ ${ PKG_VERSION } .tar.gz "
2022-02-05 14:23:32 +00:00
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 } "
m a k e _ t a r g e t ( ) {
2022-09-16 21:13:51 +00:00
make DEVICE = ${ DEVICE ^^ } RES_PATH = /usr/share/351files/res START_PATH = /storage/roms SDL2_CONFIG = ${ SYSROOT_PREFIX } /usr/bin/sdl2-config CC = $CXX
2022-02-05 14:23:32 +00:00
}
m a k e i n s t a l l _ t a r g e t ( ) {
2022-03-18 10:39:38 +00:00
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
2022-02-05 14:23:32 +00:00
}