# Template file for 'ocl-icd'
pkgname=ocl-icd
version=2.1.3
revision=8
build_style=gnu-configure
hostmakedepends="ruby"
makedepends="opencl-headers"
short_desc="Generic OpenCL ICD loader/demultiplexer"
maintainer="John Galt <johngaltfirstrun@gmail.com>"
homepage="https://forge.imag.fr/projects/ocl-icd/"
license="GPL-2"
distfiles="https://forge.imag.fr/frs/download.php/524/ocl-icd-2.1.3.tar.gz"
checksum="8338c6ae5cb7a9b34dfe79922f5e32c4f78c535a2217321dae842f72e0a2b175"

provides="libOpenCL-1.2_1"
replaces="libOpenCL>=0"

ocl-icd-devel_package() {
	depends="opencl-headers ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share
	}
}
