APP=pm-utils
VERSION=1.4.1
BUILD=1sml
HOMEPAGE='http://pm-utils.freedesktop.org/'
DOWNLOAD='https://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz'
DESC="Power management utilities"
REQUIRES="musl"

build() {
  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 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
ab69a4caca21e1fa0f571874d583eb18f7d83116bcd033b5b5c8f74b8948bccde0e169710ce6af345ac466ec6f1907ac64a5d223544cb70a71decb010c708531  pm-utils-1.4.1.tar.lz
"
