# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libbytesize
version=2.6
build=2sml
homepage="https://github.com/rhinstaller/libbytesize"
download="https://github.com/storaged-project/libbytesize/archive/refs/tags/$version.tar.gz"
desc="Library for working with big sizes in bytes"
requires="musl"

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

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

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  ./configure \
    --prefix="" \
    --disable-static

  make 
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
f4fe0f31ba1c919961450ac183cd65a4207db9e8b38338705f5f1c239179485bc639273e861db6b547bbe0356b3609bb65200040017a8cc88ef96931c7b6dc11  libbytesize-2.6.tar.lz
"
