void-packages/srcpkgs/libclc-git/template
Alessio Sergi 4e2d9db440 libclc-git: revbump due to revert
index: skipping `libclc-git-20160905_2' (noarch), already registered.
2017-04-15 00:12:44 +02:00

30 lines
916 B
Bash

# Template file for 'libclc-git'
pkgname=libclc-git
reverts=20160921_1
version=20160905
revision=3
_git_hash=88b82a6f70012a903b10dfc1e2304d3ef2e76dbc
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=4d01522ad7228fa91d46ccad68cac9fc6d2079bad23b4f0479f378dd9e9dc52e
pre_build() {
sed -i Makefile \
-e"s;/usr/bin/clang++;g++;g" \
-e"s;-mtune=i686;;g"
}
post_install() {
vlicense LICENSE.TXT
}