distribution/packages/sysutils/system-utils/package.mk
fewtarius 1f6d96325b
* Fix ALSA on x86_64 handhelds.
* Temporary drop or correct multiple packages that needed updates for x86_64.
* Update volume service to deprecate hard coded paths.
* system-utils and sleep to common packages.
* Add weston kiosk.ini for future use.
* Add DIRTY variable, if true it will not clean.
2022-08-31 17:50:23 -04:00

36 lines
1.3 KiB
Makefile

# Copyright (C) 2021-present Fewtarius
PKG_NAME="system-utils"
PKG_VERSION=""
PKG_SHA256=""
PKG_ARCH="any"
PKG_LICENSE="mix"
PKG_DEPENDS_TARGET="toolchain sleep"
PKG_SITE=""
PKG_URL=""
PKG_LONGDESC="Support scripts for Rockchip/Anbernic devices"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_DIR}/sources/autostart/common/* ${INSTALL}/usr/lib/autostart/common
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/fancontrol ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/headphone_sense ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/system_utils ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/volume_sense ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/battery ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/scripts/internalwifi ${INSTALL}/usr/bin
if [ -e "${PKG_DIR}/sources/devices/${DEVICE}/overclock" ]
then
cp ${PKG_DIR}/sources/devices/${DEVICE}/overclock ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/usr/lib/autostart/${DEVICE}
cp ${PKG_DIR}/sources/autostart/${DEVICE}/002-overclock ${INSTALL}/usr/lib/autostart/${DEVICE}
fi
chmod 0755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config
cp ${PKG_DIR}/sources/config/fancontrol.conf ${INSTALL}/usr/config/fancontrol.conf.sample
}