summaryrefslogtreecommitdiff
path: root/repo/system/acpid/acpid.xibuild
diff options
context:
space:
mode:
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
+
+}