# Template file for 'glfw'
# update together with glfw-wayland
pkgname=glfw
version=3.3.8
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
makedepends="MesaLib-devel libXrandr-devel libXi-devel glu-devel libXcursor-devel
 libXinerama-devel"
short_desc="Multi-platform library for creating windows with OpenGL contexts"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Zlib"
homepage="http://www.glfw.org"
changelog="https://www.glfw.org/changelog.html"
distfiles="https://github.com/glfw/glfw/archive/${version}.tar.gz"
checksum=f30f42e05f11e5fc62483e513b0488d5bceeab7d9c5da0ffe2252ad81816c713

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