summaryrefslogtreecommitdiff
path: root/repo/util/acpi.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-06 14:15:05 +0000
committerdavidovski <david@davidovski.xyz>2022-02-06 14:15:05 +0000
commit31723b3943baa14269be93abcb03e1ffe44a3407 (patch)
treeb47e2094372b4c15a57220bfb1d70cdf87ed1eee /repo/util/acpi.xibuild
parent16fc77be18cd3bdd4f6a9af86b9857663894f522 (diff)
adde a few extra utilities
Diffstat (limited to 'repo/util/acpi.xibuild')
-rw-r--r--repo/util/acpi.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/util/acpi.xibuild b/repo/util/acpi.xibuild
new file mode 100644
index 0000000..ff720a4
--- /dev/null
+++ b/repo/util/acpi.xibuild
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+MAKEDEPS=(make)
+DEPS=(glibc)
+
+PKG_VER=2.0.33
+SOURCE=https://downloads.sourceforge.net/acpid2/acpid-$PKG_VER.tar.xz
+DESC="Client for battery, power, and thermal readings"
+
+BOOTSCRIPTS=blfs-bootscripts-20210826
+ADDITIONAL=(
+ https://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/$BOOTSCRIPTS.tar.xz
+ )
+
+build () {
+ ./configure --prefix=/usr \
+ --docdir=/usr/share/doc/acpid-$PKG_VER &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ install -v -m755 -d $PKG_DEST/etc/acpi/events &&
+ cp -r samples $PKG_DEST/usr/share/doc/acpid-$PKG_VER
+
+ tar xf $BOOTSCRIPTS.tar.xz
+ cd $BOOTSCRIPTS
+ make DESTDIR=$PKG_DEST install-acpid
+}