# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pm-utils
version=1.4.1
build=1sml
homepage="http://pm-utils.freedesktop.org/"
download="https://pm-utils.freedesktop.org/releases/pm-utils-$version.tar.gz"
desc="Power management utilities"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --sbindir=/bin 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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