28 lines
860 B
Makefile
28 lines
860 B
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="fileman"
|
|
PKG_VERSION="8eff443"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/JustEnoughLinuxOS/fileman"
|
|
PKG_URL="${PKG_SITE}.git"
|
|
PKG_DEPENDS_TARGET="toolchain SDL2 SDL2_image SDL2_gfx SDL2_ttf"
|
|
PKG_PRIORITY="optional"
|
|
PKG_SECTION="tools"
|
|
PKG_SHORTDESC="A Single panel file Manager."
|
|
|
|
PKG_PATCH_DIRS="${DEVICE}"
|
|
|
|
make_target() {
|
|
make DEVICE=${DEVICE^^} RES_PATH=/usr/share/fileman/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/fileman
|
|
cp fileman ${INSTALL}/usr/bin/
|
|
cp -rf res ${INSTALL}/usr/share/fileman/
|
|
chmod 0755 ${INSTALL}/usr/bin/fileman
|
|
}
|