void-packages/srcpkgs/libomp/template
2019-02-16 05:08:06 -02:00

28 lines
800 B
Bash

# Template file for 'libomp'
pkgname=libomp
version=7.0.1
revision=2
wrksrc="openmp-${version}.src"
build_style=cmake
configure_args="-DLIBOMP_ENABLE_SHARED=ON"
hostmakedepends="perl pkg-config"
makedepends="elfutils-devel libffi-devel"
short_desc="LLVM OpenMP Runtime Library"
maintainer="Andy Weidenbaum <archbaum@gmail.com>"
license="NCSA"
homepage="https://openmp.llvm.org"
distfiles="https://releases.llvm.org/${version}/openmp-${version}.src.tar.xz"
checksum=bf16b78a678da67d68405214ec7ee59d86a15f599855806192a75dcfca9b0d0c
post_install() {
# libgomp.so is also provided by libgomp-devel, fix conflict
rm ${PKGDESTDIR}/usr/lib/libgomp.so
}
libomp-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
}
}