libomp: remove conflict with libgomp-devel

This commit is contained in:
Andy Weidenbaum 2019-02-16 19:19:02 +13:00 committed by maxice8
parent 4a85b4e821
commit aa86725b4b
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libomp'
pkgname=libomp
version=7.0.1
revision=1
revision=2
wrksrc="openmp-${version}.src"
build_style=cmake
configure_args="-DLIBOMP_ENABLE_SHARED=ON"
@ -14,13 +14,15 @@ 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}"
# libgomp.so is also provided by libgomp-devel
conflicts="libgomp-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/libgomp.so
}
}