#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=libostree
pkgver=2022.2
pkgrel=1gv
source=("https://github.com/ostreedev/ostree/releases/download/v${pkgver}/libostree-${pkgver}.tar.xz")
docs=("readme.md" "install" "license" "copying" "changelog" "authors" "news" "todo")
url=https://ostreedev.github.io/ostree/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libostree (library for immutable filesystem trees)"
"OSTree is a tool that combines a \"git-like\" model for committing and"
"downloading bootable filesystem trees, along with a layer for"
"deploying them and managing the bootloader configuration."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--with-builtin-grub2-mkconfig \
		--with-ed25519-libsodium \
		--with-dracut \
		--with-mkinitcpio \
		--with-openssl \
		--disable-static \
		--disable-gtk-doc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}