distribution/packages/hardware/quirks/package.mk

29 lines
793 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2023-04-01 12:23:19 +00:00
PKG_NAME="quirks"
PKG_VERSION=""
2023-04-01 12:23:19 +00:00
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
2023-04-01 12:23:19 +00:00
PKG_SITE=""
PKG_URL=""
2023-09-20 02:14:32 +00:00
PKG_DEPENDS_TARGET="toolchain autostart ioport ectool"
2023-04-01 12:23:19 +00:00
PKG_SHORTDESC="Quirks is a simple package that provides device quirks."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/autostart/quirks/{platforms,devices}
cp -r ${PKG_DIR}/devices/* ${INSTALL}/usr/lib/autostart/quirks/devices
if [ -d "${PKG_DIR}/platforms/${DEVICE}" ]
then
cp -r ${PKG_DIR}/platforms/* ${INSTALL}/usr/lib/autostart/quirks/platforms
fi
2023-04-01 12:23:19 +00:00
chmod -R 0755 ${INSTALL}/usr/lib/autostart/quirks
}
post_install() {
enable_service led-poweroff.service
}