description="C library supporting GObject introspection for manipulation of block devices"
url="https://github.com/storaged-project/libblockdev"

license="LGPL2.1"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(python python-pygments glib gobject-introspection libbytesize lvm2
             volume_key parted gtk-doc yaml libnvme e2fsprogs)
run=(gptfdisk)


name=libblockdev
version=3.1.1
release=2

source=(https://github.com/storaged-project/$name/releases/download/$version-1/$name-$version.tar.gz)

build() {

cd $name-$version
./configure --prefix=/usr \
--with-python3 \
--without-dm   \
--without-nvdimm \
--sysconfdir=/etc
make
make DESTDIR=$PKG install
rm $PKG/usr/lib/*.la

install -Dm644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
