void-packages/srcpkgs/ocl-icd/template

36 lines
865 B
Bash

# Template file for 'ocl-icd'
pkgname=ocl-icd
version=2.3.1
revision=1
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=a32b67c2d52ffbaf490be9fc18b46428ab807ab11eff7664d7ff75e06cfafd6d
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
}
}