void-packages/srcpkgs/libclc-git/template

30 lines
897 B
Bash

# Template file for 'libclc-git'
pkgname=libclc-git
version=20170225
revision=1
_git_hash=17648cd846390e294feafef21c32c7106eac1e24
wrksrc="libclc-${_git_hash}"
build_style=configure
configure_script="./configure.py"
configure_args="--prefix=/usr"
hostmakedepends="clang libedit-devel libffi-devel llvm ncurses-devel
python zlib-devel"
short_desc="Open implementation of the OpenCL C programming language"
maintainer="John Galt <johngaltfirstrun@gmail.com>"
license="BSD/MIT"
homepage="http://libclc.llvm.org"
provides="libclc-${version}_${revision}"
replaces="libclc>=0"
noarch=yes
distfiles="https://github.com/llvm-mirror/libclc/archive/${_git_hash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=2ca9f06a75ed9a914e4197598a7bc396f93edc3063a9f219b425f70e261b84e2
pre_build() {
sed -i Makefile \
-e"s;/usr/bin/clang++;g++;g" \
-e"s;-mtune=i686;;g"
}
post_install() {
vlicense LICENSE.TXT
}