pkgname=openmp pkgver=19.1.6 pkgrel=1 pkgdesc="LLVM OpenMP Runtime Library" arch=('x86_64') url="https://openmp.llvm.org/" license=('Apache-2.0 WITH LLVM-exception') depends=('llvm-libs' 'libelf' 'libffi') makedepends=('llvm' 'clang' 'cmake' 'ninja' 'python') options=('!lto') source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/${pkgname}-${pkgver}.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/cmake-$pkgver.src.tar.xz) sha256sums=(549294ef37e2c9ec8317258b539e56f25d479ed811e2db846017e028b69f8da6 9c7ec82d9a240dc2287b8de89d6881bb64ceea0dcd6ce133c34ef65bda22d99e) prepare() { mv cmake{-$pkgver.src,} } build() { cd ${pkgname}-${pkgver}.src local cmake_args=( -B flarebird-build -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr -D OPENMP_INSTALL_LIBDIR=lib64 -D LIBOMP_INSTALL_ALIASES=OFF ) cmake ${cmake_args[@]} ninja -C flarebird-build } package() { cd ${pkgname}-${pkgver}.src DESTDIR=${pkgdir} ninja -C flarebird-build install rm ${pkgdir}/usr/lib64/libarcher_static.a # Compile Python scripts python3 -m compileall -d /usr/share $${pkgdir}/usr/share python3 -O -m compileall -d /usr/share $${pkgdir}/usr/share python3 -OO -m compileall -d /usr/share $${pkgdir}/usr/share }