distribution/packages/apps/fileman/package.mk
2023-06-24 14:16:00 +00:00

28 lines
948 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="9f192b8d026568f232f6687882f519572623a992"
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() {
MAKEDEVICE=$(echo ${DEVICE^^} | sed "s#-#_##g")
make DEVICE=${MAKEDEVICE^^} 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
}