mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
PKG_NAME="modules"
|
|
PKG_VERSION=""
|
|
PKG_LICENSE="custom"
|
|
PKG_SITE=""
|
|
PKG_URL=""
|
|
PKG_DEPENDS_TARGET="toolchain rclone"
|
|
PKG_LONGDESC="OS Modules Package"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
case ${DEVICE} in
|
|
RK3588|RK3399|SM8250|SM8550|SDM845)
|
|
PKG_DEPENDS_TARGET+=" gamepadtester qterminal"
|
|
;;
|
|
esac
|
|
|
|
# Fileman or Commander Filemanager
|
|
case ${DEVICE} in
|
|
SM8250)
|
|
PKG_DEPENDS_TARGET+=" commander"
|
|
FILEMANAGER="commander"
|
|
;;
|
|
*)
|
|
PKG_DEPENDS_TARGET+=" fileman"
|
|
FILEMANAGER="fileman"
|
|
;;
|
|
esac
|
|
|
|
make_target() {
|
|
:
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/config/modules
|
|
cp -rf ${PKG_DIR}/sources/* ${INSTALL}/usr/config/modules
|
|
chmod 0755 ${INSTALL}/usr/config/modules/*
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
case ${ARCH} in
|
|
x86_64)
|
|
rm -f ${INSTALL}/usr/config/modules/*32bit*
|
|
rm -f ${INSTALL}/usr/config/modules/*Master*
|
|
;;
|
|
esac
|
|
|
|
if [ ! "${INSTALLER_SUPPORT}" = "yes" ] || \
|
|
[ ! "${DISPLAYSERVER}" = "wl" ]
|
|
then
|
|
rm -f ${INSTALL}/usr/config/modules/Install*
|
|
fi
|
|
|
|
# Set filemanger
|
|
sed -e "s/@FILEMANAGER@/${FILEMANAGER}/g" -i ${INSTALL}/usr/config/modules/gamelist.xml
|
|
if [ ${FILEMANAGER} == "commander" ]; then
|
|
rm -rf ${INSTALL}/usr/config/modules/fileman.sh
|
|
else
|
|
rm -rf ${INSTALL}/usr/config/modules/commander.sh
|
|
fi
|
|
}
|
|
|