app=libblockdev
version=2.26
build=1sml
homepage="https://github.com/rhinstaller/libblockdev"
download="http://github.com/storaged-project/libblockdev/archive/refs/tags/2.26-1.tar.gz"
desc="library for manipulating block devices"
requires="libbytesize libyaml dmraid"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    --without-gtk-doc \
    --without-bcache \
    --without-escrow \
    --without-btrfs \
    --disable-introspection \
    --without-kbd || true

  make
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
d2f94481fbbf19876ff359d2f4c8a0ede12e77bc96eaf7af99f31a9d325dccf7cd7be7820e0747d3aef8c200fd85838ec1ab4796680728589ade226dc443822d  libblockdev-2.26.tar.lz
"
