# Template file for 'libdisplay-info'
pkgname=libdisplay-info
version=0.2.0
revision=1
build_style=meson
hostmakedepends="hwids"
short_desc="EDID and DisplayID library"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://gitlab.freedesktop.org/emersion/libdisplay-info/"
distfiles="https://gitlab.freedesktop.org/emersion/libdisplay-info/-/archive/${version}/libdisplay-info-${version}.tar.gz"
checksum=f7331fcaf5527251b84c8fb84238d06cd2f458422ce950c80e86c72927aa8c2b
# tests require currently unpacakged edid-decode
make_check=no

post_install() {
	vlicense LICENSE
}

libdisplay-info-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
