# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libatasmart
version=0.19
build=2sml
homepage="http://0pointer.de/blog/projects/being-smart.html"
download="https://0pointer.de/public/libatasmart-$version.tar.xz"
desc="ATA S.M.A.R.T reading and parsing library"
requires="musl"

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

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

build() {
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --docdir="/share/doc/$app-$version" \
    --disable-static \
    $builddist

  make
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
82244f9915ef15f9332a71ad945bcf6ce1c75a07f068d6ad925f6dcffbf7dc375e44a48f9705fbfa6ce6c8c3e10bfdc56f41a0d91670253f623421a916dfa343  libatasmart-0.19.tar.lz
"
