2022-12-21 00:29:08 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="powerstate"
|
2023-04-30 01:53:37 +00:00
|
|
|
PKG_VERSION="${AUTO_VERSION}"
|
2022-12-21 00:29:08 +00:00
|
|
|
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
|
|
|
|
}
|