summaryrefslogtreecommitdiff
path: root/repo/acpid/acpid.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/acpid/acpid.xibuild
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/acpid/acpid.xibuild')
-rw-r--r--repo/acpid/acpid.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/acpid/acpid.xibuild b/repo/acpid/acpid.xibuild
new file mode 100644
index 0000000..f960ac0
--- /dev/null
+++ b/repo/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
+
+}