Date: Tuesday, December 31, 2019 @ 03:55:26 Author: lcarlier Revision: 545039
archrelease: copy trunk to multilib-x86_64 Added: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 545038, lib32-llvm/trunk/PKGBUILD) Deleted: lib32-llvm/repos/multilib-x86_64/PKGBUILD ----------+ PKGBUILD | 210 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 108 insertions(+), 102 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-12-31 03:55:21 UTC (rev 545038) +++ PKGBUILD 2019-12-31 03:55:26 UTC (rev 545039) @@ -1,102 +0,0 @@ -# Maintainer: Laurent Carlier <lordhea...@gmail.com> -# Contributor: Evangelos Foutras <foutre...@gmail.com> -# Contributor: Jan "heftig" Steffens <jan.steff...@gmail.com> - -pkgname=('lib32-llvm' 'lib32-llvm-libs') -pkgver=9.0.0 -pkgrel=1 -arch=('x86_64') -url="https://llvm.org/" -license=('custom:Apache 2.0 with LLVM Execption') -makedepends=('cmake' 'ninja' 'lib32-libffi' 'lib32-zlib' 'python' 'gcc-multilib' - 'lib32-libxml2') -options=('staticlibs') -source=(https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig}) -sha256sums=('d6a0565cf21f22e9b4353b2eb92622e8365000a9e90a16b09b56f8157eabfe84' - 'SKIP') -validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <h...@chromium.org> -validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstel...@redhat.com> - -prepare() { - cd "$srcdir/llvm-$pkgver.src" - mkdir build -} - -build() { - cd "$srcdir/llvm-$pkgver.src/build" - - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - cmake .. -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLLVM_LIBDIR_SUFFIX=32 \ - -DCMAKE_C_FLAGS:STRING=-m32 \ - -DCMAKE_CXX_FLAGS:STRING=-m32 \ - -DLLVM_TARGET_ARCH:STRING=i686 \ - -DLLVM_HOST_TRIPLE=$CHOST \ - -DLLVM_DEFAULT_TARGETS_TRIPLE="i686-pc-linux-gnu" \ - -DLLVM_BUILD_LLVM_DYLIB=ON \ - -DLLVM_LINK_LLVM_DYLIB=ON \ - -DLLVM_ENABLE_RTTI=ON \ - -DLLVM_ENABLE_FFI=ON \ - -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR \ - -DLLVM_BUILD_DOCS=OFF \ - -DLLVM_ENABLE_SPHINX=OFF \ - -DLLVM_ENABLE_DOXYGEN=OFF \ - -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ - -DLLVM_BINUTILS_INCDIR=/usr/include - - ninja all -} - -package_lib32-llvm() { - pkgdesc="Collection of modular and reusable compiler and toolchain technologies (32-bit)" - depends=('lib32-llvm-libs' 'llvm') - - cd "$srcdir/llvm-$pkgver.src/build" - - DESTDIR="$pkgdir" ninja install - - # The runtime library goes into lib32-llvm-libs - mv "$pkgdir"/usr/lib32/lib{LLVM,LTO}*.so* "$srcdir" - mv -f "$pkgdir"/usr/lib32/LLVMgold.so "$srcdir" - - # Fix permissions of static libs - chmod -x "$pkgdir"/usr/lib32/*.a - - mv "$pkgdir/usr/bin/llvm-config" "$pkgdir/usr/lib32/llvm-config" - mv "$pkgdir/usr/include/llvm/Config/llvm-config.h" \ - "$pkgdir/usr/lib32/llvm-config-32.h" - - rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man,llvm,opt-viewer}} - - # Needed for multilib (https://bugs.archlinux.org/task/29951) - # Header stub is taken from Fedora - install -d "$pkgdir/usr/include/llvm/Config" - mv "$pkgdir/usr/lib32/llvm-config-32.h" "$pkgdir/usr/include/llvm/Config/" - - mkdir "$pkgdir"/usr/bin - mv "$pkgdir/usr/lib32/llvm-config" "$pkgdir/usr/bin/llvm-config32" - - install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_lib32-llvm-libs() { - pkgdesc="Low Level Virtual Machine (runtime library)(32-bit) " - depends=('lib32-libffi' 'lib32-zlib' 'lib32-ncurses' 'lib32-libxml2' 'lib32-gcc-libs') - - install -d "$pkgdir/usr/lib32" - - cp -P \ - "$srcdir"/lib{LLVM,LTO}*.so* \ - "$srcdir"/LLVMgold.so \ - "$pkgdir/usr/lib32/" - - # Symlink LLVMgold.so from /usr/lib/bfd-plugins - # https://bugs.archlinux.org/task/28479 - install -d "$pkgdir/usr/lib32/bfd-plugins" - ln -s ../LLVMgold.so "$pkgdir/usr/lib32/bfd-plugins/LLVMgold.so" - - install -Dm644 llvm-$pkgver.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 545038, lib32-llvm/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-12-31 03:55:26 UTC (rev 545039) @@ -0,0 +1,108 @@ +# Maintainer: Laurent Carlier <lordhea...@gmail.com> +# Contributor: Evangelos Foutras <foutre...@gmail.com> +# Contributor: Jan "heftig" Steffens <jan.steff...@gmail.com> + +pkgname=('lib32-llvm' 'lib32-llvm-libs') +pkgver=9.0.1 +pkgrel=1 +arch=('x86_64') +url="https://llvm.org/" +license=('custom:Apache 2.0 with LLVM Execption') +makedepends=('cmake' 'ninja' 'lib32-libffi' 'lib32-zlib' 'python' 'gcc-multilib' + 'lib32-libxml2') +options=('staticlibs') + +_source_base=https://releases.llvm.org/$pkgver +if [[ ${pkgver##*.} != 0 ]]; then + _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver +fi + +source=($_source_base/llvm-$pkgver.src.tar.xz{,.sig}) +sha256sums=('00a1ee1f389f81e9979f3a640a01c431b3021de0d42278f6508391a2f0b81c9a' + 'SKIP') +validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <h...@chromium.org> +validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstel...@redhat.com> + +prepare() { + cd "$srcdir/llvm-$pkgver.src" + mkdir build +} + +build() { + cd "$srcdir/llvm-$pkgver.src/build" + + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cmake .. -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLLVM_LIBDIR_SUFFIX=32 \ + -DCMAKE_C_FLAGS:STRING=-m32 \ + -DCMAKE_CXX_FLAGS:STRING=-m32 \ + -DLLVM_TARGET_ARCH:STRING=i686 \ + -DLLVM_HOST_TRIPLE=$CHOST \ + -DLLVM_DEFAULT_TARGETS_TRIPLE="i686-pc-linux-gnu" \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_ENABLE_RTTI=ON \ + -DLLVM_ENABLE_FFI=ON \ + -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR \ + -DLLVM_BUILD_DOCS=OFF \ + -DLLVM_ENABLE_SPHINX=OFF \ + -DLLVM_ENABLE_DOXYGEN=OFF \ + -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ + -DLLVM_BINUTILS_INCDIR=/usr/include + + ninja all +} + +package_lib32-llvm() { + pkgdesc="Collection of modular and reusable compiler and toolchain technologies (32-bit)" + depends=('lib32-llvm-libs' 'llvm') + + cd "$srcdir/llvm-$pkgver.src/build" + + DESTDIR="$pkgdir" ninja install + + # The runtime library goes into lib32-llvm-libs + mv "$pkgdir"/usr/lib32/lib{LLVM,LTO}*.so* "$srcdir" + mv -f "$pkgdir"/usr/lib32/LLVMgold.so "$srcdir" + + # Fix permissions of static libs + chmod -x "$pkgdir"/usr/lib32/*.a + + mv "$pkgdir/usr/bin/llvm-config" "$pkgdir/usr/lib32/llvm-config" + mv "$pkgdir/usr/include/llvm/Config/llvm-config.h" \ + "$pkgdir/usr/lib32/llvm-config-32.h" + + rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man,llvm,opt-viewer}} + + # Needed for multilib (https://bugs.archlinux.org/task/29951) + # Header stub is taken from Fedora + install -d "$pkgdir/usr/include/llvm/Config" + mv "$pkgdir/usr/lib32/llvm-config-32.h" "$pkgdir/usr/include/llvm/Config/" + + mkdir "$pkgdir"/usr/bin + mv "$pkgdir/usr/lib32/llvm-config" "$pkgdir/usr/bin/llvm-config32" + + install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_lib32-llvm-libs() { + pkgdesc="Low Level Virtual Machine (runtime library)(32-bit) " + depends=('lib32-libffi' 'lib32-zlib' 'lib32-ncurses' 'lib32-libxml2' 'lib32-gcc-libs') + + install -d "$pkgdir/usr/lib32" + + cp -P \ + "$srcdir"/lib{LLVM,LTO}*.so* \ + "$srcdir"/LLVMgold.so \ + "$pkgdir/usr/lib32/" + + # Symlink LLVMgold.so from /usr/lib/bfd-plugins + # https://bugs.archlinux.org/task/28479 + install -d "$pkgdir/usr/lib32/bfd-plugins" + ln -s ../LLVMgold.so "$pkgdir/usr/lib32/bfd-plugins/LLVMgold.so" + + install -Dm644 llvm-$pkgver.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}