distribution/packages/sysutils/powerstate/package.mk

23 lines
493 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
PKG_NAME="powerstate"
PKG_VERSION="${AUTO_VERSION}"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_DEPENDS_TARGET="systemd"
PKG_SITE=""
PKG_URL=""
PKG_LONGDESC="Adjusts settings for better battery life"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp powerstate.sh ${INSTALL}/usr/bin/powerstate
chmod +x ${INSTALL}/usr/bin/powerstate
}
2022-12-21 22:24:01 +00:00
post_install() {
enable_service powerstate.service
}