APP=dmidecode
VERSION=3.2
BUILD=1sml
HOMEPAGE='https://www.nongnu.org/dmidecode/'
DOWNLOAD='http://download.savannah.gnu.org/releases/dmidecode/dmidecode-3.2.tar.xz'
DESC="DMI table decoder"
REQUIRES="musl"

build() {
  compileonlyfor x86_64
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  make V=s
  make install DESTDIR=$PKG prefix="" mandir="/share/man" sbindir="/bin"

  cp LICENSE $PKGDOCS/
 
  mkfinalpkg
}

SHA512SUMS="
fb38256f4e577d015f7696e5bfe9bf023ce2448ba213deb40d825955da87728cef6d63050af0fe4f1f95f2b9a109629535c183f339ecb9a3ca956b6c3e2f574e  dmidecode-3.2.tar.lz
"
