distribution/packages/sysutils/sleep/package.mk

22 lines
612 B
Makefile

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020-present Fewtarius
PKG_NAME="sleep"
PKG_VERSION="${AUTO_VERSION}"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_DEPENDS_TARGET="systemd"
PKG_SITE=""
PKG_URL=""
PKG_LONGDESC="Sleep configuration"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/config/sleep.conf.d
cp sleep.conf ${INSTALL}/usr/config/sleep.conf.d/sleep.conf
cp modules.bad ${INSTALL}/usr/config
mkdir -p ${INSTALL}/usr/lib/systemd/system-sleep/
cp sleep.sh ${INSTALL}/usr/lib/systemd/system-sleep/sleep
chmod +x ${INSTALL}/usr/lib/systemd/system-sleep/sleep
}