1
0
forked from ports/contrib
contrib/acpid/Pkgfile

26 lines
694 B
Plaintext

# Description: ACPI event management daemon with netlink support
# URL: https://sourceforge.net/projects/acpid2/
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
name=acpid
version=2.0.32
release=2
source=(\
https://downloads.sourceforge.net/sourceforge/acpid2/$name-$version.tar.xz \
acpid.rc default default.sh)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR="${PKG}" install
install -D -m 755 "${SRC}"/acpid.rc "${PKG}"/etc/rc.d/acpid
install -D -m 755 "${SRC}"/default.sh "${PKG}"/etc/acpi/default.sh
install -D -m 644 "${SRC}"/default "${PKG}"/etc/acpi/events/default
rm -r "${PKG}"/usr/share/doc
}
# s-sh-mode