smlinux/base/acpid/acpid.SMBuild

40 lines
925 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=acpid
version=2.0.32
build=2sml
homepage="https://sourceforge.net/projects/acpid2"
download=""
desc="Tools and daemon for implementing ACPI standard on Linux"
requires="musl"
prepbuilddir() {
compileonlyfor x86_64
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z**
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix="" \
--sysconfdir=/etc \
--sbindir=/bin
make
make install DESTDIR=$pkg
install -Dm 755 $srcdir/acpi_handler.sh $pkg/etc/acpi/acpi_handler.sh.new
install -Dm 644 $srcdir/default $pkg/etc/acpi/events/default
install -Dm 755 $srcdir/rc.acpid $pkg/etc/rc.d/rc.acpid
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
6b5ccc5ea460135b07a1ea894d0bc7200e24167669fdcf1aa9a9c49dc1b7c5cb4479ffb854b1d04cb8b25c55f4adf8dc7996d7899d5fe52c015259e7df84f314 acpid-2.0.32.tar.lz
"