42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
|
|
|
PKG_NAME="drastic-sa"
|
|
PKG_VERSION="1.0"
|
|
PKG_LICENSE="Proprietary:DRASTIC.pdf"
|
|
PKG_ARCH="aarch64"
|
|
PKG_URL="https://github.com/brooksytech/JelosAddOns/raw/main/drastic.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Install Drastic Launcher script, will dowload bin on first run"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
if [ "${DEVICE}" = "S922X" ]; then
|
|
PKG_DEPENDS_TARGET+=" libegl"
|
|
fi
|
|
|
|
make_target() {
|
|
:
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp -rf ${PKG_DIR}/scripts/start_drastic.sh ${INSTALL}/usr/bin
|
|
chmod +x ${INSTALL}/usr/bin/start_drastic.sh
|
|
|
|
mkdir -p ${INSTALL}/usr/config/drastic/config
|
|
cp -rf ${PKG_BUILD}/drastic_aarch64/* ${INSTALL}/usr/config/drastic/
|
|
cp -rf ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/drastic/config/
|
|
}
|
|
|
|
post_install() {
|
|
case ${DEVICE} in
|
|
S922X)
|
|
LIBEGL="export SDL_VIDEO_GL_DRIVER=\/usr\/lib\/egl\/libGL.so.1 SDL_VIDEO_EGL_DRIVER=\/usr\/lib\/egl\/libEGL.so.1"
|
|
;;
|
|
*)
|
|
LIBEGL=""
|
|
;;
|
|
esac
|
|
sed -e "s/@LIBEGL@/${LIBEGL}/g" \
|
|
-i ${INSTALL}/usr/bin/start_drastic.sh
|
|
}
|