void-packages/srcpkgs/ocl-icd/template

37 lines
866 B
Bash

# Template file for 'ocl-icd'
pkgname=ocl-icd
version=2.2.12
revision=2
build_style=gnu-configure
hostmakedepends="ruby xmlto asciidoc automake libtool"
makedepends="opencl2-headers"
short_desc="Generic OpenCL ICD loader/demultiplexer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://forge.imag.fr/projects/ocl-icd/"
distfiles="https://github.com/OCL-dev/${pkgname}/archive/v${version}.tar.gz"
checksum=17500e5788304eef5b52dbe784cec197bdae64e05eecf38317840d2d05484272
provides="libOpenCL-1.2_1"
replaces="libOpenCL>=0"
CFLAGS="-fcommon"
pre_configure() {
./bootstrap
}
post_install() {
vlicense COPYING
}
ocl-icd-devel_package() {
depends="opencl2-headers ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/doc
}
}