summaryrefslogtreecommitdiff
path: root/repo/acpid/acpid.xibuild
blob: f960ac056de1c3ce130d8c29b6ab40040cd60222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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

}