summaryrefslogtreecommitdiff
path: root/repo/system/acpid/acpid.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/acpid/acpid.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/acpid/acpid.xibuild')
-rw-r--r--repo/system/acpid/acpid.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/system/acpid/acpid.xibuild b/repo/system/acpid/acpid.xibuild
new file mode 100644
index 0000000..f960ac0
--- /dev/null
+++ b/repo/system/acpid/acpid.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+MAKEDEPS="make"
+DEPS="musl"
+
+PKG_VER=2.0.33
+SOURCE=https://downloads.sourceforge.net/acpid2/acpid-$PKG_VER.tar.xz
+DESC="Daemon for battery, power, and thermal readings"
+
+ADDITIONAL="
+ acpid.confd
+ acpid.initd
+ anything
+ handler.sh
+ lid-closed
+ power-supply-ac
+"
+build () {
+ ./configure --prefix=/usr \
+ --docdir=/usr/share/doc/acpid-$PKG_VER &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ install -m755 -d $PKG_DEST/etc/acpi/events &&
+ cp -r samples $PKG_DEST/usr/share/doc/acpid-$PKG_VER
+
+ install -D -m 755 handler.sh etc/acpi/handler.sh
+ install -D -m 644 anything etc/acpi/events/anything
+ install -D -m 755 power-supply-ac usr/share/acpid/
+ install -D -m 755 lid-closed usr/share/acpid/
+
+ install -D -m 755 acpid.initd etc/init.d/acpid
+ install -D -m 644 acpid.confd etc/conf.d/acpid
+
+}