blob: 3cb0432c22540c5b1a215b636102c6db551ef9e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Alexander Karpukhin <thealexdev23@gmail.com>
pkgname=power-options-daemon-git
pkgver=1.2.2r3.8889b4
pkgrel=1
pkgdesc="The core daemon for Power Options, a blazingly fast power management solution."
arch=('x86_64')
url="https://github.com/thealexdev23/power-options"
license=('MIT')
depends=('acpid' 'pciutils' 'usbutils' 'yad')
optdepends=(
'brightnessctl: needed for brightness settings'
'net-tools: needed to disable ethernet cards' 'net-tools: needed to disable ethernet cards'
'xorg-xrandr: needed for screen settings'
'xorg-xset: needed to configure screen turn off timeout'
'xautolock: needed to configure system suspend timeout'
)
makedepends=('cargo' 'git')
provides=('power-options-daemon')
conflicts=('power-options-daemon')
source=("git+https://github.com/thealexdev23/power-options.git")
sha256sums=('SKIP')
install="daemon.install"
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir/power-options/crates/power-daemon-mgr"
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir/power-options/crates/power-daemon-mgr"
cargo build --frozen --release
}
package() {
cd "$srcdir/power-options"
install -Dm755 "target/release/power-daemon-mgr" "$pkgdir/usr/bin/power-daemon-mgr"
# Generate files
"$pkgdir/usr/bin/power-daemon-mgr" -v generate-base-files --path "$pkgdir" --program-path "/usr/bin/power-daemon-mgr"
}
|