# Template file for 'libsfdo'
pkgname=libsfdo
version=0.1.4
revision=1
build_style=meson
configure_args="-Dexamples=false"
short_desc="Libraries which implement some of the freedesktop.org specifications"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="BSD-2-Clause"
homepage="https://gitlab.freedesktop.org/vyivel/libsfdo"
changelog="https://gitlab.freedesktop.org/vyivel/libsfdo/-/releases"
distfiles="https://gitlab.freedesktop.org/vyivel/libsfdo/-/archive/v${version}/libsfdo-v${version}.tar.gz"
checksum=9d74a9bff1f872e38ab662d8e2b5f6ecd404d7f82f84e9c324013f856688fa2d

if [ -z "${XBPS_CHECK_PKGS}" ]; then
	configure_args+=" -Dtests=false"
fi

post_install() {
	vlicense LICENSE
}

libsfdo-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
