smlinux/base/acpid/acpid.SMBuild
2022-01-28 23:06:05 +05:30

37 lines
892 B
Text
Executable file

APP=acpid
VERSION=2.0.32
BUILD=1sml
HOMEPAGE='http://sourceforge.net/projects/acpid2/'
DOWNLOAD=''
DESC="Tools and daemon for implementing ACPI standard on Linux"
build() {
compileonlyfor x86_64
mkandenterbuilddir
rm -rf $APP-$VERSION
tar xf $SRCDIR/$APP-$VERSION.tar.?z**
cd $APP-$VERSION
fixbuilddirpermissions
./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/
head -n 100 Changelog > $PKGDOCS/CHANGELOG
mkfinalpkg
}
SHA512SUMS="
c7afffdf9818504e1ac03b0ad693a05f772bfd07af9808262b3b6bb82ca4dabe6253c94e6dc59e5be6f0da9e815e8bcf2d3e16f02b23d0248b6bad4509e78be7 acpid-2.0.32.tar.xz
"