[arch-commits] Commit in lib32-llvm/repos/multilib-x86_64 (PKGBUILD PKGBUILD)
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 === --- PKGBUILD2019-12-31 03:55:21 UTC (rev 545038) +++ PKGBUILD2019-12-31 03:55:26 UTC (rev 545039) @@ -1,102 +0,0 @@ -# Maintainer: Laurent Carlier -# Contributor: Evangelos Foutras -# Contributor: Jan "heftig" Steffens - -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 -validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard - -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) +++ PKGBUILD2019-12-31 03:55:26 UTC (rev 545039) @@ -0,0 +1,108 @@ +# Maintainer: Laurent Carlier +# Contributor: Evangelos Foutras +# Contributor: Jan "heftig" Steffens + +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=('00a1ee1f389f81e9979f3a640a01c431b3021de
[arch-commits] Commit in lib32-llvm/repos/multilib-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, December 21, 2017 @ 10:58:41 Author: lcarlier Revision: 275162 archrelease: copy trunk to multilib-x86_64 Added: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 275161, lib32-llvm/trunk/PKGBUILD) Deleted: lib32-llvm/repos/multilib-x86_64/PKGBUILD --+ PKGBUILD | 288 ++--- 1 file changed, 144 insertions(+), 144 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2017-12-21 10:58:34 UTC (rev 275161) +++ PKGBUILD2017-12-21 10:58:41 UTC (rev 275162) @@ -1,144 +0,0 @@ -# $Id$ -# Maintainer: Evangelos Foutras -# Contributor: Jan "heftig" Steffens -# Contributor: Sebastian Nowicki -# Contributor: Devin Cofer -# Contributor: Tobias Kieslich -# Contributor: Geoffroy Carrier -# Contributor: Tomas Lindquist Olsen -# Contributor: Roberto Alsina -# Contributor: Gerardo Exequiel Pozzi - -pkgname=('lib32-llvm' 'lib32-llvm-libs' 'lib32-clang') -pkgver=5.0.0 -pkgrel=1 -arch=('x86_64') -url="http://llvm.org/"; -license=('custom:University of Illinois/NCSA Open Source License') -makedepends=('cmake' 'lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib' - 'lib32-libxml2') -options=('staticlibs') -source=(http://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} -http://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} -http://releases.llvm.org/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}) -sha256sums=('e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da' -'SKIP' -'019f23c2192df793ac746595e94a403908749f8e0c484b403476d2611dd20970' -'SKIP' -'d5ad5266462134a482b381f1f8115b6cad3473741b3bb7d1acc7f69fd0f0c0b3' -'SKIP') -validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D' - '11E521D646982372EB577A1F8F0871F202119294') - -prepare() { - cd "$srcdir/llvm-$pkgver.src" - mkdir build - - mv "$srcdir/cfe-$pkgver.src" tools/clang - mv "$srcdir/compiler-rt-$pkgver.src" projects/compiler-rt - - # Somehow CMake finds the 64-bit library in /lib first, - # so let's preseed CMAKE_LIBRARY_PATH with /lib32. - sed -i '/^[[:blank:]]*find_library(FFI_LIBRARY_PATH/i\ - list(INSERT CMAKE_LIBRARY_PATH 0 /usr/lib32)' cmake/config-ix.cmake -} - -build() { - cd "$srcdir/llvm-$pkgver.src/build" - - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - cmake \ --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_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \ --DLLVM_BUILD_LLVM_DYLIB=ON \ --DLLVM_LINK_LLVM_DYLIB=ON \ --DLLVM_ENABLE_RTTI=ON \ --DLLVM_ENABLE_FFI=ON \ --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 \ -.. - - make - - # Disable automatic installation of components that go into subpackages - sed -i '/\(clang\|lldb\)\/cmake_install.cmake/d' tools/cmake_install.cmake - sed -i '/extra\/cmake_install.cmake/d' tools/clang/tools/cmake_install.cmake - sed -i '/compiler-rt\/cmake_install.cmake/d' projects/cmake_install.cmake -} - -package_lib32-llvm() { - pkgdesc="Low Level Virtual Machine (32-bit)" - depends=('lib32-llvm-libs' 'llvm') - - cd "$srcdir/llvm-$pkgver.src" - - make -C build DESTDIR="$pkgdir" 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" - - # Get rid of example Hello transformation - rm "$pkgdir"/usr/lib32/*LLVMHello.* - - 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-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/b
[arch-commits] Commit in lib32-llvm/repos/multilib-x86_64 (PKGBUILD PKGBUILD)
Date: Tuesday, May 26, 2015 @ 08:13:52 Author: lcarlier Revision: 134134 archrelease: copy trunk to multilib-x86_64 Added: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 134133, lib32-llvm/trunk/PKGBUILD) Deleted: lib32-llvm/repos/multilib-x86_64/PKGBUILD --+ PKGBUILD | 308 + 1 file changed, 149 insertions(+), 159 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2015-05-26 06:13:46 UTC (rev 134133) +++ PKGBUILD2015-05-26 06:13:52 UTC (rev 134134) @@ -1,159 +0,0 @@ -# $Id$ -# Maintainer: Evangelos Foutras -# Contributor: Jan "heftig" Steffens -# Contributor: Sebastian Nowicki -# Contributor: Devin Cofer -# Contributor: Tobias Kieslich -# Contributor: Geoffroy Carrier -# Contributor: Tomas Lindquist Olsen -# Contributor: Roberto Alsina -# Contributor: Gerardo Exequiel Pozzi - -pkgname=('lib32-llvm' 'lib32-llvm-libs' 'lib32-clang') -pkgver=3.6.0 -pkgrel=1 -arch=('x86_64') -url="http://llvm.org/"; -license=('custom:University of Illinois/NCSA Open Source License') -makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib') -options=('staticlibs') -source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz{,.sig} -http://llvm.org/releases/$pkgver/cfe-$pkgver.src.tar.xz{,.sig} -http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}) -sha256sums=('b39a69e501b49e8f73ff75c9ad72313681ee58d6f430bfad4d81846fe92eb9ce' -'SKIP' -'be0e69378119fe26f0f2f74cffe82b7c26da840c9733fe522ed3c1b66b11082d' -'SKIP' -'7f49fb79e5adcdce7dddaf973f1db130228dfb19e37a99a7f5365a6948b26b11' -'SKIP') -validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') - -prepare() { - cd "$srcdir/llvm-$pkgver.src" - - mv "$srcdir/cfe-$pkgver.src" tools/clang - mv "$srcdir/compiler-rt-$pkgver.src" projects/compiler-rt - - # Fix installation directories, ./configure doesn't seem to set them right - sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \ - -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \ -Makefile.config.in - sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib32:' \ -tools/llvm-config/llvm-config.cpp - sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \ -autoconf/configure.ac \ -configure - - # Fix source file permissions - # http://llvm.org/bugs/show_bug.cgi?id=22742 - chmod -R u=rwX,go=rX "$srcdir/llvm-$pkgver.src" -} - -build() { - cd "$srcdir/llvm-$pkgver.src" - - export CC="gcc -m32" - export CXX="g++ -m32" - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - # Apply strip option to configure - _optimized_switch="enable" - [[ $(check_option strip) == n ]] && _optimized_switch="disable" - - # Include location of libffi headers in CPPFLAGS - CPPFLAGS+=" $(pkg-config --cflags libffi)" - - # We had to force host and target to get - # a proper triplet reported by llvm - - ./configure \ ---prefix=/usr \ ---libdir=/usr/lib32 \ ---sysconfdir=/etc \ ---enable-shared \ ---enable-libffi \ ---enable-targets=all \ ---disable-expensive-checks \ ---disable-debug-runtime \ ---disable-assertions \ ---with-binutils-include=/usr/include \ ---with-python=/usr/bin/python2 \ ---build=i686-pc-linux-gnu \ ---host=i686-pc-linux-gnu \ ---$_optimized_switch-optimized - - make REQUIRES_RTTI=1 -} - -package_lib32-llvm() { - pkgdesc="Low Level Virtual Machine (32-bit)" - depends=('lib32-llvm-libs' 'llvm') - - cd "$srcdir/llvm-$pkgver.src" - - make DESTDIR="$pkgdir" install - - # The runtime library goes into lib32-llvm-libs - mv "$pkgdir/usr/lib32/libLLVM-$pkgver.so" "$srcdir/" - mv "$pkgdir/usr/lib32/libLLVM-${pkgver%.*}.so" "$srcdir/" - - # Fix permissions of static libs - chmod -x "$pkgdir"/usr/lib32/*.a - - mv "$pkgdir/usr/bin/llvm-config" "$pkgdir/usr/lib32/llvm-config" - - # Get rid of example Hello transformation - rm "$pkgdir"/usr/lib32/*LLVMHello.* - - # Symlink LLVMgold.so from /usr/lib32/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" - - mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/" - rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man,llvm}} - - # remove conflicting clang files - rm -r "$pkgdir"/usr/lib - rm "$pkgdir"/usr/lib32/libclang* - - install -d "$pkgdir/usr/include/llvm/Config" - mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h" - mv "$pkgdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config-32.h" - - 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 librar
[arch-commits] Commit in lib32-llvm/repos/multilib-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, May 15, 2014 @ 16:28:59 Author: lcarlier Revision: 111219 archrelease: copy trunk to multilib-x86_64 Added: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 111218, lib32-llvm/trunk/PKGBUILD) Deleted: lib32-llvm/repos/multilib-x86_64/PKGBUILD --+ PKGBUILD | 263 +++-- 1 file changed, 136 insertions(+), 127 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2014-05-15 14:28:48 UTC (rev 111218) +++ PKGBUILD2014-05-15 14:28:59 UTC (rev 111219) @@ -1,127 +0,0 @@ -# $Id$ -# Maintainer: Evangelos Foutras -# Contributor: Jan "heftig" Steffens -# Contributor: Sebastian Nowicki -# Contributor: Devin Cofer -# Contributor: Tobias Kieslich -# Contributor: Geoffroy Carrier -# Contributor: Tomas Lindquist Olsen -# Contributor: Roberto Alsina -# Contributor: Gerardo Exequiel Pozzi - -pkgname=('lib32-llvm' 'lib32-llvm-libs') -pkgver=3.4 -pkgrel=1 -arch=('x86_64') -url="http://llvm.org/"; -license=('custom:University of Illinois/NCSA Open Source License') -makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib') -options=('staticlibs') -source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz -http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.gz) -sha256sums=('25a5612d692c48481b9b397e2b55f4870e447966d66c96d655241702d44a2628' -'f37c89b1383ce462d47537a0245ac798600887a9be9f63073e16b79ed536ab5c') - -prepare() { - cd "$srcdir/llvm-$pkgver" - - rm -rf tools/clang - - rm -rf projects/compiler-rt - mv "$srcdir/compiler-rt-$pkgver" projects/compiler-rt - - # Fix installation directories, ./configure doesn't seem to set them right - sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \ - -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \ -Makefile.config.in - sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib32:' \ -tools/llvm-config/llvm-config.cpp - sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \ -autoconf/configure.ac \ -configure -} - -build() { - cd "$srcdir/llvm-$pkgver" - - export CC="gcc -m32" - export CXX="g++ -m32" - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - # Apply strip option to configure - _optimized_switch="enable" - [[ $(check_option strip) == n ]] && _optimized_switch="disable" - - # Include location of libffi headers in CPPFLAGS - CPPFLAGS+=" $(pkg-config --cflags libffi)" - - # We had to force host and target to get - # a proper triplet reported by llvm - - ./configure \ ---prefix=/usr \ ---libdir=/usr/lib32 \ ---sysconfdir=/etc \ ---enable-shared \ ---enable-libffi \ ---enable-targets=all \ ---disable-expensive-checks \ ---disable-debug-runtime \ ---disable-assertions \ ---with-binutils-include=/usr/include \ ---with-python=/usr/bin/python2 \ ---host=i386-pc-linux-gnu \ ---target=i386-pc-linux-gnu \ ---$_optimized_switch-optimized - - make REQUIRES_RTTI=1 -} - -package_lib32-llvm() { - pkgdesc="Low Level Virtual Machine (32-bit)" - depends=('lib32-llvm-libs' 'llvm') - - cd "$srcdir/llvm-$pkgver" - - make DESTDIR="$pkgdir" install - - # The runtime library goes into lib32-llvm-libs - mv "$pkgdir/usr/lib32/libLLVM-$pkgver.so" "$srcdir" - - # Fix permissions of static libs - chmod -x "$pkgdir"/usr/lib32/*.a - - mv "$pkgdir/usr/bin/i386-pc-linux-gnu-llvm-config" "$pkgdir/usr/lib32/llvm-config" - - # Get rid of example Hello transformation - rm "$pkgdir"/usr/lib32/*LLVMHello.* - - # Symlink LLVMgold.so into /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" - - mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/" - rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man}} - - install -d "$pkgdir/usr/include/llvm/Config" - mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h" - mv "$pkgdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config-32.h" - - 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-gcc-libs') - - cd "$srcdir" - - install -D libLLVM-$pkgver.so "$pkgdir/usr/lib32/libLLVM-$pkgver.so" - - install -Dm644 llvm-$pkgver/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - Copied: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 111218, lib32-llvm/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2014-05-15 14:28:59 UTC (rev 111219) @@ -0,0 +1,136 @@ +# $Id$ +# Maintainer: Evangelos Foutras +#
[arch-commits] Commit in lib32-llvm/repos/multilib-x86_64 (PKGBUILD PKGBUILD)
Date: Saturday, October 26, 2013 @ 19:45:34 Author: lcarlier Revision: 99297 archrelease: copy trunk to multilib-x86_64 Added: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 99296, lib32-llvm/trunk/PKGBUILD) Deleted: lib32-llvm/repos/multilib-x86_64/PKGBUILD --+ PKGBUILD | 261 ++--- 1 file changed, 131 insertions(+), 130 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2013-10-26 17:44:32 UTC (rev 99296) +++ PKGBUILD2013-10-26 17:45:34 UTC (rev 99297) @@ -1,130 +0,0 @@ -# $Id$ -# Maintainer: Evangelos Foutras -# Contributor: Jan "heftig" Steffens -# Contributor: Sebastian Nowicki -# Contributor: Devin Cofer -# Contributor: Tobias Kieslich -# Contributor: Geoffroy Carrier -# Contributor: Tomas Lindquist Olsen -# Contributor: Roberto Alsina -# Contributor: Gerardo Exequiel Pozzi - -pkgname=('lib32-llvm' 'lib32-llvm-libs') -pkgver=3.3 -pkgrel=1 -arch=('x86_64') -url="http://llvm.org/"; -license=('custom:University of Illinois/NCSA Open Source License') -makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib') -source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz -http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.gz) -sha256sums=('68766b1e70d05a25e2f502e997a3cb3937187a3296595cf6e0977d5cd6727578' -'0e2f3180d6316e6c43f064fdd406c5c6515e682c5f31c57c28335b68c7525423') - -prepare() { - cd "$srcdir/llvm-$pkgver.src" - - rm -rf tools/clang - - rm -rf projects/compiler-rt - mv "$srcdir/compiler-rt-$pkgver.src" projects/compiler-rt - - # Fix installation directories, ./configure doesn't seem to set them right - sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \ - -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \ -Makefile.config.in - sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib32:' \ -tools/llvm-config/llvm-config.cpp - sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \ -autoconf/configure.ac \ -configure - - # Fix insecure rpath (http://bugs.archlinux.org/task/14017) - sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules -} - -build() { - cd "$srcdir/llvm-$pkgver.src" - - export CC="gcc -m32" - export CXX="g++ -m32" - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - # Apply strip option to configure - _optimized_switch="enable" - [[ $(check_option strip) == n ]] && _optimized_switch="disable" - - # Include location of libffi headers in CPPFLAGS - CPPFLAGS+=" $(pkg-config --cflags libffi)" - - # We had to force host and target to get - # a proper triplet reported by llvm - - ./configure \ ---prefix=/usr \ ---libdir=/usr/lib32 \ ---sysconfdir=/etc \ ---enable-shared \ ---enable-libffi \ ---enable-targets=all \ ---enable-experimental-targets=R600 \ ---disable-expensive-checks \ ---disable-debug-runtime \ ---disable-assertions \ ---with-binutils-include=/usr/include \ ---with-python=/usr/bin/python2 \ ---host=i386-pc-linux-gnu \ ---target=i386-pc-linux-gnu \ ---$_optimized_switch-optimized - - make REQUIRES_RTTI=1 -} - -package_lib32-llvm() { - pkgdesc="Low Level Virtual Machine (32-bit)" - depends=('lib32-llvm-libs' 'llvm') - - cd "$srcdir/llvm-$pkgver.src" - - make DESTDIR="$pkgdir" install - - # The runtime library goes into lib32-llvm-libs - mv "$pkgdir/usr/lib32/libLLVM-3.3.so" "$srcdir" - - # Fix permissions of static libs - chmod -x "$pkgdir"/usr/lib32/*.a - - mv "$pkgdir/usr/bin/i386-pc-linux-gnu-llvm-config" "$pkgdir/usr/lib32/llvm-config" - - # Get rid of example Hello transformation - rm "$pkgdir"/usr/lib32/*LLVMHello.* - - # Symlink LLVMgold.so into /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" - - mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/" - rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man}} - - install -d "$pkgdir/usr/include/llvm/Config" - mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h" - mv "$pkgdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config-32.h" - - 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-gcc-libs') - - cd "$srcdir" - - install -D libLLVM-3.3.so "$pkgdir/usr/lib32/libLLVM-3.3.so" - - install -Dm644 llvm-$pkgver.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - Copied: lib32-llvm/repos/multilib-x86_64/PKGBUILD (from rev 99296, lib32-llvm/trunk/PKGBUILD)