Skip to content

Commit 64c0a52

Browse files
committed
Fix obs errors
1 parent 1a31ce5 commit 64c0a52

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

ci/gen_daemon_pkgbuild.py

-17
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,6 @@ def create_pkgbuild(pkgname, pkgver, url):
5757
# Generate files
5858
"$pkgdir/usr/bin/power-daemon-mgr" -v generate-base-files --path "$pkgdir" --program-path "/usr/bin/power-daemon-mgr"
5959
}}
60-
61-
post_install() {{
62-
systemctl daemon-reload
63-
systemctl enable power-options.service
64-
systemctl start power-options.service
65-
systemctl restart acpid.service
66-
}}
67-
68-
post_upgrade() {{
69-
systemctl daemon-reload
70-
systemctl restart power-options.service
71-
systemctl restart acpid.service
72-
}}
73-
74-
post_remove() {{
75-
systemctl daemon-reload
76-
}}
7760
"""
7861
return pkgbuild_content
7962

dist/obs/debian.control

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Source: build
1+
Source: power-options-daemon
22
Section: admin
33
Priority: optional
44
Maintainer: Alexander Karpukhin <[email protected]>
@@ -9,8 +9,5 @@ Homepage: https://github.com/thealexdev23/power-options
99
Package: power-options-daemon
1010
Architecture: any
1111
Depends: ${misc:Depends}, ${shlibs:Depends}, acpid, pciutils, usbutils, yad
12-
Conflicts: build
13-
Replaces: build
14-
Provides: build
1512
Recommends: brightnessctl, net-tools, xorg-xrandr, xorg-xset, xautolock
1613
Description: The core daemon for Power Options, a blazingly fast power management solution.

dist/obs/debian.rules

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
SHELL=/bin/bash
1919

2020
build:
21-
tar -xf vendor.tar.zst --directory .
22-
cargo build --release --project power-daemon-mgr
21+
cargo build --release --package power-daemon-mgr
22+
# tar -xf vendor.tar.zst --directory .
2323

2424
clean:
2525
dh_clean
@@ -28,6 +28,6 @@ install: build
2828
dh_clean -k
2929
dh_installdirs
3030
install -Dm755 target/release/power-daemon-mgr $(DESTDIR)/usr/bin/power-daemon-mgr
31-
$(DESTDIR)/usr/bin/power-daemon-mgr -v generate-base-files --path %{buildroot} --program-path "%{_bindir}/power-daemon-mgr"
31+
$(DESTDIR)/usr/bin/power-daemon-mgr -v generate-base-files --path %{buildroot} --program-path "%{_bindir}/power-daemon-mgr"
3232

3333
.PHONY: build clean install

dist/obs/power-options-daemon.dsc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Format: 1.0
2-
Source: build
2+
Source: power-options-daemon
33
Version: 1.1.0
44
Binary: build
55
Maintainer: Alexander Karpukhin <[email protected]>

dist/obs/power-options-daemon.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Summary: The core daemon for Power Options, a blazingly fast power management
66
License: MIT
77
URL: https://github.com/thealexdev23/power-options
88

9-
Source0: power-options-%{version}.tar.zst
9+
Source0: power-options-%{version}.tar.gz
1010
Source1: vendor.tar.zst
1111

1212
BuildRequires: cargo

0 commit comments

Comments
 (0)