2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-27 02:40:30 +00:00
|
|
|
|
|
|
|
PKG_NAME="modules"
|
2023-05-01 21:16:24 +00:00
|
|
|
PKG_VERSION=""
|
2022-02-27 02:40:30 +00:00
|
|
|
PKG_ARCH="any"
|
2022-03-01 22:06:41 +00:00
|
|
|
PKG_LICENSE="custom"
|
2022-02-27 02:40:30 +00:00
|
|
|
PKG_SITE=""
|
|
|
|
PKG_URL=""
|
2022-12-30 13:01:15 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain rclone"
|
2022-02-27 02:40:30 +00:00
|
|
|
PKG_SHORTDESC="OS Modules Package"
|
|
|
|
PKG_LONGDESC="OS Modules Package"
|
|
|
|
PKG_IS_ADDON="no"
|
|
|
|
PKG_AUTORECONF="no"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
2023-10-05 12:48:58 +00:00
|
|
|
###
|
|
|
|
### Note: Start scripts for emulators have been moved to
|
|
|
|
### packages/virtual/emulators.
|
|
|
|
###
|
|
|
|
|
2022-03-03 11:54:53 +00:00
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2022-02-27 02:40:30 +00:00
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/config/modules
|
|
|
|
cp -rf ${PKG_DIR}/sources/* ${INSTALL}/usr/config/modules
|
2022-03-19 17:25:22 +00:00
|
|
|
chmod 0755 ${INSTALL}/usr/config/modules/*
|
2022-12-04 20:46:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-09-14 21:35:38 +00:00
|
|
|
case ${ARCH} in
|
|
|
|
x86_64)
|
2022-12-16 23:48:54 +00:00
|
|
|
rm -f ${INSTALL}/usr/config/modules/*32bit*
|
|
|
|
rm -f ${INSTALL}/usr/config/modules/*Master*
|
2022-12-04 20:46:38 +00:00
|
|
|
;;
|
2022-09-14 21:35:38 +00:00
|
|
|
esac
|
2024-01-11 00:57:49 +00:00
|
|
|
|
2023-05-25 13:21:03 +00:00
|
|
|
case ${DEVICE} in
|
|
|
|
S922X*)
|
|
|
|
rm -f ${INSTALL}/usr/config/modules/*ScummVM*
|
2023-06-09 20:56:32 +00:00
|
|
|
rm -f ${INSTALL}/usr/config/modules/*32bit*
|
2023-05-25 13:21:03 +00:00
|
|
|
;;
|
|
|
|
esac
|
2024-01-11 00:57:49 +00:00
|
|
|
|
|
|
|
if [ ! "${INSTALLER_SUPPORT}" = "yes" ] || \
|
|
|
|
[ ! "${DISPLAYSERVER}" = "wl" ]
|
|
|
|
then
|
|
|
|
rm -f ${INSTALL}/usr/config/modules/Install*
|
|
|
|
fi
|
2022-02-27 02:40:30 +00:00
|
|
|
}
|
|
|
|
|