diff --git a/archlinuxcn/lib32-llvm-git/PKGBUILD b/archlinuxcn/lib32-llvm-git/PKGBUILD deleted file mode 100644 index d29a2f731acb..000000000000 --- a/archlinuxcn/lib32-llvm-git/PKGBUILD +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/bash -#Maintainer: Solomon Choina -# Based on LordHeavy's LLVM -pkgbase=lib32-llvm-git -pkgname=('lib32-spirv-llvm-translator-git' 'lib32-llvm-libs-git' 'lib32-clang-git' 'lib32-llvm-git') -pkgdesc='Low Level Virtual Machine (git version)' -pkgver=19.0.0_r505087.58c7df90f8382 -pkgrel=1 -groups=('chaotic-mesa-git') -arch=($CARCH) -url="https://llvm.org/" -license=('Apache-2.0 WITH LLVM-exception') -makedepends=('git' 'cmake' 'ninja' 'python' - 'lib32-gcc-libs' 'lib32-libffi' 'lib32-libunwind' 'spirv-headers-git' 'lib32-spirv-tools-git' - 'lib32-libxml2' 'lib32-zlib' 'lib32-zstd' 'gcc-multilib' 'llvm-git') - -source=("llvm-project::git+https://github.com/llvm/llvm-project.git" - "git+https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git" - ) - -md5sums=('SKIP' - 'SKIP') -sha512sums=('SKIP' - 'SKIP') -options=('staticlibs') # 'debug' takes way too long to scan for the source files... - -pkgver() { - cd llvm-project/cmake/Modules - - # This will almost match the output of `llvm-config --version` when the - # LLVM_APPEND_VC_REV cmake flag is turned on. The only difference is - # dash being replaced with underscore because of Pacman requirements. - local _pkgver=$(awk -F 'MAJOR |MINOR |PATCH |)' \ - 'BEGIN { ORS="." ; i=0 } \ - /set\(LLVM_VERSION_/ { print $2 ; i++ ; if (i==2) ORS="" } \ - END { print "\n" }' \ - LLVMVersion.cmake)_r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) - echo "$_pkgver" -} - -prepare() { - cd llvm-project - - rm -rf "$srcdir"/fakeinstall - - cp -r $srcdir/SPIRV-LLVM-Translator llvm/projects -} - -build() { - CFLAGS+=" -ffile-prefix-map=${srcdir}=${DBGSRCDIR:-/usr/src/debug}" - CXXFLAGS+=" -ffile-prefix-map=${srcdir}=${DBGSRCDIR:-/usr/src/debug}" - CFLAGS+=' -fasynchronous-unwind-tables' - CXXFLAGS+=' -fasynchronous-unwind-tables' - LDFLAGS+=' -fasynchronous-unwind-tables' - - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - LIB32_CFLAGS="$CFLAGS -m32" - LIB32_CXXFLAGS="$CXXFLAGS -m32" - - cmake \ - -B _build \ - -S llvm-project/llvm \ - -G Ninja \ - -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt" \ - -D CMAKE_BUILD_TYPE=Release \ - -D CMAKE_INSTALL_PREFIX=/usr \ - -D LLVM_LIBDIR_SUFFIX=32 \ - -D CMAKE_C_FLAGS="$LIB32_CFLAGS" \ - -D CMAKE_CXX_FLAGS="$LIB32_CXXFLAGS" \ - -D LLVM_TARGET_ARCH:STRING=i686 \ - -D LLVM_HOST_TRIPLE="$CHOST" \ - -D LLVM_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \ - -D LLVM_BINUTILS_INCDIR=/usr/include \ - -D LLVM_BUILD_LLVM_DYLIB=ON \ - -D LLVM_LINK_LLVM_DYLIB=ON \ - -D LLVM_ENABLE_BINDINGS=OFF \ - -D LLVM_ENABLE_RTTI=ON \ - -D LLVM_ENABLE_FFI=ON \ - -D LLVM_BUILD_TESTS=OFF \ - -D LLVM_BUILD_DOCS=OFF \ - -D LLVM_ENABLE_SPHINX=OFF \ - -D LLVM_ENABLE_DOXYGEN=OFF \ - -D FFI_INCLUDE_DIR="$(pkg-config --variable=includedir libffi)" \ - -D LLVM_APPEND_VC_REV=ON \ - -D LLVM_ENABLE_DUMP=ON \ - -D LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv/ - - ninja -C _build all - DESTDIR="$srcdir/fakeinstall" ninja -C _build install -} - -_fakeinstall () { - local src f dir - for src; do - f="${src#fakeinstall/}" - dir="$pkgdir/${f%/*}" - install -m755 -d "$dir" - mv -v "$src" "$dir/" - done -} - -package_lib32-spirv-llvm-translator-git() { - pkgdesc="Tool and a library for bi-directional translation between SPIR-V and LLVM IR" - depends=("lib32-llvm-git=$pkgver-$pkgrel" 'lib32-spirv-tools' 'spirv-llvm-translator-git') - provides=('lib32-spirv-llvm-translator') - conflicts=('lib32-spirv-llvm-translator') - - _fakeinstall fakeinstall/usr/lib32/libLLVMSPIRVLib.* - _fakeinstall fakeinstall/usr/lib32/pkgconfig/LLVMSPIRVLib.pc - sed -i 's/17.0.0/19.0.0/g' $pkgdir/usr/lib32/pkgconfig/LLVMSPIRVLib.pc - install -Dm644 "$srcdir"/llvm-project/llvm/projects/SPIRV-LLVM-Translator/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_lib32-llvm-libs-git() { - pkgdesc='Low Level Virtual Machine library (runtime library)(32-bit)(git version)' - depends=('lib32-libffi' 'lib32-zlib' 'lib32-libxml2' 'lib32-gcc-libs' 'lib32-zstd' 'lib32-llvm-git') - provides=("lib32-llvm-libs=$pkgver") - replaces=('lib32-llvm-libs-svn') - conflicts=('lib32-llvm-libs-svn' 'lib32-llvm-libs') - - _fakeinstall fakeinstall/usr/lib32/libLLVM-*.so - _fakeinstall fakeinstall/usr/lib32/libRemarks.so.* - _fakeinstall fakeinstall/usr/lib32/LLVMgold.so - install -d "$pkgdir/usr/lib32/bfd-plugins" - ln -s ../LLVMgold.so "$pkgdir/usr/lib32/bfd-plugins/LLVMgold.so" - install -Dm644 "$srcdir"/llvm-project/llvm/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_lib32-clang-git() { - pkgdesc="C language family frontend for LLVM (32-bit)" - depends=("lib32-llvm-libs-git=$pkgver-$pkgrel" "lib32-gcc-libs" "gcc-multilib" "lib32-llvm-git") - provides=("lib32-clang=$pkgver") - replaces=('lib32-clang-svn') - conflicts=('lib32-clang' 'lib32-clang-svn') - optdepends=('python: needed for hwsan_symbolize') - - _fakeinstall fakeinstall/usr/lib32/clang - _fakeinstall fakeinstall/usr/lib32/cmake/clang/ - _fakeinstall fakeinstall/usr/lib32/libclang* - install -Dm644 "$srcdir"/llvm-project/clang/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_lib32-llvm-git() { - pkgdesc='Low Level Virtual Machine (32-bit)(git version)' - depends=("lib32-llvm-libs-git=$pkgver-$pkgrel" 'llvm-git' 'lib32-gcc-libs' 'lib32-libxml2' 'lib32-libffi' 'lib32-zlib' 'python' 'lib32-zstd') - provides=("lib32-llvm=$pkgver") - replaces=('lib32-llvm-svn') - conflicts=('lib32-llvm' 'lib32-llvm-svn') - - _fakeinstall fakeinstall/usr/lib32 - # Remove libs which conflict with lib32-llvm-libs - rm -f "$pkgdir"/usr/lib32/{libLLVM,libLTO,LLVMgold,libRemarks}.so - - _fakeinstall fakeinstall/usr/bin/llvm-config - mv -v "$pkgdir"/usr/bin/llvm-config "$pkgdir"/usr/lib32/llvm-config - - _fakeinstall fakeinstall/usr/include/llvm/Config/llvm-config.h - 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}} - - install -d "$pkgdir/usr/include/llvm/Config" - mv "$pkgdir/usr/lib32/llvm-config-32.h" "$pkgdir/usr/include/llvm/Config/" - - mv -v "$pkgdir"/usr/lib32/llvm-config "$pkgdir"/usr/bin/llvm-config32 - - install -Dm644 "$srcdir"/llvm-project/llvm/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} diff --git a/archlinuxcn/lib32-llvm-git/lilac.py b/archlinuxcn/lib32-llvm-git/lilac.py deleted file mode 100644 index 0648c0e0a190..000000000000 --- a/archlinuxcn/lib32-llvm-git/lilac.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/python3 - -import os.path - -build_args = ['-r', os.path.expanduser('~/chroots')] diff --git a/archlinuxcn/lib32-llvm-git/lilac.yaml b/archlinuxcn/lib32-llvm-git/lilac.yaml deleted file mode 100644 index 7ad2d8e8767a..000000000000 --- a/archlinuxcn/lib32-llvm-git/lilac.yaml +++ /dev/null @@ -1,17 +0,0 @@ -maintainers: - - github: solaraquarion -build_prefix: multilib - -pre_build: vcs_update -post_build: git_pkgbuild_commit -repo_makedepends: - - llvm-git: llvm-git - - llvm-git: llvm-libs-git - - spirv-headers-git - - lib32-spirv-tools-git - - spirv-tools-git -time_limit_hours: 2 - -update_on: - - source: cmd # Update every other day - cmd: python -c "import time; print(int(time.time()) // (2 * 24 * 60 * 60))" diff --git a/archlinuxcn/lib32-mesa-git/LICENSE b/archlinuxcn/lib32-mesa-git/LICENSE deleted file mode 100644 index 060f4a925b9b..000000000000 --- a/archlinuxcn/lib32-mesa-git/LICENSE +++ /dev/null @@ -1,83 +0,0 @@ -The Mesa 3D Graphics Library - -Disclaimer - - Mesa is a 3-D graphics library with an API which is very similar to - that of [1]OpenGL.* To the extent that Mesa utilizes the OpenGL command - syntax or state machine, it is being used with authorization from - [2]Silicon Graphics, Inc.(SGI). However, the author does not possess an - OpenGL license from SGI, and makes no claim that Mesa is in any way a - compatible replacement for OpenGL or associated with SGI. Those who - want a licensed implementation of OpenGL should contact a licensed - vendor. - - Please do not refer to the library as MesaGL (for legal reasons). It's - just Mesa or The Mesa 3-D graphics library. - - * OpenGL is a trademark of [3]Silicon Graphics Incorporated. - -License / Copyright Information - - The Mesa distribution consists of several components. Different - copyrights and licenses apply to different components. For example, the - GLX client code uses the SGI Free Software License B, and some of the - Mesa device drivers are copyrighted by their authors. See below for a - list of Mesa's main components and the license for each. - - The core Mesa library is licensed according to the terms of the MIT - license. This allows integration with the XFree86, Xorg and DRI - projects. - - The default Mesa license is as follows: - -Copyright (C) 1999-2007 Brian Paul All Rights Reserved. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -Attention, Contributors - - When contributing to the Mesa project you must agree to the licensing - terms of the component to which you're contributing. The following - section lists the primary components of the Mesa distribution and their - respective licenses. - -Mesa Component Licenses - -Component Location License ------------------------------------------------------------------- -Main Mesa code src/mesa/ MIT - -Device drivers src/mesa/drivers/* MIT, generally - -Gallium code src/gallium/ MIT - -Ext headers include/GL/glext.h Khronos - include/GL/glxext.h - -GLX client code src/glx/ SGI Free Software License B - -C11 thread include/c11/threads*.h Boost (permissive) emulation - - In general, consult the source files for license terms. - -References - - 1. https://www.opengl.org/ - 2. https://www.sgi.com/ - 3. https://www.sgi.com/ diff --git a/archlinuxcn/lib32-mesa-git/PKGBUILD b/archlinuxcn/lib32-mesa-git/PKGBUILD deleted file mode 100644 index 1c3d9f758a99..000000000000 --- a/archlinuxcn/lib32-mesa-git/PKGBUILD +++ /dev/null @@ -1,179 +0,0 @@ -# $Id: PKGBUILD 59539 2011-11-27 22:55:28Z lcarlier $ -# Contributor: Jan de Groot -# Contributor: Andreas Radke -# Maintainer: Solomon Choina - -pkgbase=lib32-mesa-git -pkgname=('lib32-vulkan-mesa-layers-git' 'lib32-vulkan-intel-git' 'lib32-vulkan-radeon-git' 'lib32-mesa-git') -pkgdesc="mesa trunk (32-bit) (git version)" -epoch=1 -pkgver=23.0.0_devel.162640.0b82281e3e3b -pkgrel=1 -groups=('chaotic-mesa-git') -arch=('x86_64') - -LLVM32_VERSION=$(pacman -Si lib32-llvm-libs-git | grep -Po '^Version +: ([^-]+)' | awk '{print $3}') - -makedepends=('python-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 'lib32-libdrm' 'xorgproto' - 'lib32-libxrandr' 'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 'gcc-multilib' - 'lib32-libelf' 'lib32-llvm-git' - 'lib32-systemd' 'lib32-libvdpau' 'lib32-libva' 'lib32-wayland' 'wayland-protocols' 'lib32-libglvnd' - 'lib32-lm_sensors' 'lib32-clang-git' - 'meson' 'glslang' 'valgrind' 'lib32-vulkan-icd-loader' 'lib32-libelf' - 'lib32-zstd' 'git') -url="http://mesa3d.sourceforge.net" -license=('custom') -source=('mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git' - 'llvm32.native' - 'LICENSE') -sha256sums=('SKIP' - '3ea259740141b862e152e07c58f05cad539680541dc181a7233be0c93414e6fb' - '7052ba73bb07ea78873a2431ee4e828f4e72bda7d176d07f770fa48373dec537') - -pkgver() { - cd ${srcdir}/mesa - - read -r _ver -# Contributor: Eric Engestrom -# Contributor: Jan Alexander Steffens (heftig) -# Contributor: Laurent Carlier - - -pkgname=lib32-spirv-tools-git -pkgver="2024.3".3990.257cacfb3 -pkgrel=1 -pkgdesc='API and commands for processing SPIR-V modules (32-bit version)' -url='https://github.com/KhronosGroup/SPIRV-Tools' -arch=('i686' 'x86_64') -license=('Apache-2.0') -source=('git+https://github.com/KhronosGroup/SPIRV-Tools' - 'git+https://github.com/google/googletest.git' - 'git+https://github.com/google/effcee.git' - 'git+https://github.com/google/re2.git' - 'git+https://github.com/abseil/abseil-cpp.git' -) -sha1sums=('SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP') -depends=(lib32-glibc lib32-gcc-libs spirv-tools-git sh) -makedepends=(cmake python git spirv-headers-git) -conflicts=(lib32-spirv-tools) -provides=(lib32-spirv-tools) - - -cmake_args=( - -G "Unix Makefiles" - -D CMAKE_BUILD_TYPE=Release - -D CMAKE_INSTALL_PREFIX=/usr - -D CMAKE_INSTALL_LIBDIR=lib32 - -D SPIRV-Headers_SOURCE_DIR=/usr/ - -D BUILD_SHARED_LIBS=ON - -D SPIRV_TOOLS_BUILD_STATIC=OFF - -D SPIRV_WERROR=OFF -) - -prepare() { - # link external sources so cmake can find them - pushd SPIRV-Tools/external - ln -s "$srcdir"/googletest - ln -s $srcdir/abseil-cpp abseil_cpp - ln -s "$srcdir"/effcee - ln -s "$srcdir"/re2 - popd - - export CC='gcc -m32' - export CXX='g++ -m32' - export PKG_CONFIG=i686-pc-linux-gnu-pkg-config - - cmake -S SPIRV-Tools -B _build "${cmake_args[@]}" -Wno-dev - make -C _build spirv-tools-build-version -} - -pkgver() { - local _ver1 _ver2 - # read fails if only 1 var is used - IFS="," read -r _ver1 _ver2 < _build/build-version.inc || [ -n "_ver1" ] - - cd SPIRV-Tools - echo ${_ver1//v/}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) -} - - - -build() { - make -C _build -} - -check() { - make -C _build test -} - -package() { - make -C _build DESTDIR="$pkgdir" install - rm -r "$pkgdir"/usr/{bin,include} -} diff --git a/archlinuxcn/lib32-spirv-tools-git/lilac.yaml b/archlinuxcn/lib32-spirv-tools-git/lilac.yaml deleted file mode 100644 index 844cca749dee..000000000000 --- a/archlinuxcn/lib32-spirv-tools-git/lilac.yaml +++ /dev/null @@ -1,13 +0,0 @@ -maintainers: - - github: solaraquarion -build_prefix: multilib - -pre_build_script: vcs_update -post_build: git_pkgbuild_commit - -repo_makedepends: - - spirv-headers-git - - spirv-tools-git -update_on: - - source: github - github: KhronosGroup/SPIRV-Tools diff --git a/archlinuxcn/libclc-git/PKGBUILD b/archlinuxcn/libclc-git/PKGBUILD deleted file mode 100644 index 09273a9a562e..000000000000 --- a/archlinuxcn/libclc-git/PKGBUILD +++ /dev/null @@ -1,52 +0,0 @@ -# Contributor: Laurent Carlier -# Maintainer: Solomon Choina -pkgname=libclc-git -pkgver=19.0.0_r505079.27d961dab3caa -pkgrel=1 -epoch=1 -groups=('mesagit') -pkgdesc="Library requirements of the OpenCL C programming language (git version)" -arch=('i686' 'x86_64') -url="http://libclc.llvm.org/" -license=('MIT') -provides=('libclc') -conflicts=('libclc') -makedepends=('clang' 'llvm' 'spirv-llvm-translator' 'git' 'python' 'ninja' 'cmake') -options=('staticlibs') -source=('llvm-project-git::git+https://github.com/llvm/llvm-project.git') -md5sums=('SKIP') - -pkgver() { - cd llvm-project-git/cmake/Modules - local _pkgver=$(awk -F 'MAJOR |MINOR |PATCH |)' \ - 'BEGIN { ORS="." ; i=0 } \ - /set\(LLVM_VERSION_/ { print $2 ; i++ ; if (i==2) ORS="" } \ - END { print "\n" }' \ - LLVMVersion.cmake)_r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) - echo "${_pkgver}" - -} - -prepare() { - cd llvm-project-git - - rm -rf build && mkdir build -} -build() { - cd llvm-project-git/build - - cmake ../libclc -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_DATADIR=/usr/lib \ - -DLIBCLC_TARGETS_TO_BUILD="all" - - ninja all -} - -package() { - cd "$srcdir/llvm-project-git/libclc" - - DESTDIR="$pkgdir" ninja -C ../build install - install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} diff --git a/archlinuxcn/libclc-git/lilac.yaml b/archlinuxcn/libclc-git/lilac.yaml deleted file mode 100644 index 614d8c888623..000000000000 --- a/archlinuxcn/libclc-git/lilac.yaml +++ /dev/null @@ -1,10 +0,0 @@ -maintainers: - - github: solaraquarion -build_prefix: multilib - -pre_build: vcs_update -post_build: git_pkgbuild_commit - -update_on: - - source: cmd # Update every other day - cmd: python -c "import time; print(int(time.time()) // (2 * 24 * 60 * 60))" diff --git a/archlinuxcn/llvm-git/PKGBUILD b/archlinuxcn/llvm-git/PKGBUILD deleted file mode 100644 index c7115299190c..000000000000 --- a/archlinuxcn/llvm-git/PKGBUILD +++ /dev/null @@ -1,318 +0,0 @@ -#!/usr/bin/bash -# Maintainer: Solomon Choina -# Based on LordHeavy's LLVM -pkgbase=llvm-git -pkgname=('lldb-git' 'lld-git' 'polly-git' 'compiler-rt-git' 'clang-git' 'spirv-llvm-translator-git' 'llvm-libs-git' 'llvm-git') -pkgdesc='Low Level Virtual Machine (git version)' -pkgver=19.0.0_r505083.8618c86ee2cc5 -pkgrel=1 -groups=('chaotic-mesa-git') -arch=('x86_64' 'armv7h' 'aarch64') -url="https://llvm.org/" -license=('Apache-2.0 WITH LLVM-exception') -makedepends=('git' 'cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2' - 'python-sphinx' 'lua53' 'python-recommonmark' 'python-setuptools' 'python-six' - 'cuda' 'ocl-icd' 'opencl-headers' 'python-yaml' 'python-myst-parser' - 'swig' 'python' 'libunwind' 'spirv-headers-git' - 'python-sphinx-furo' 'python-sphinx-automodapi' 'python-pexpect' - 'python-psutil' 'spirv-tools-git' 'tensorflow') - -source=("llvm-project::git+https://github.com/llvm/llvm-project.git" - "git+https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git" - "llvm-config.h" - ) - -md5sums=('SKIP' - 'SKIP' - '295c343dcd457dc534662f011d7cff1a') -sha512sums=('SKIP' - 'SKIP' - '75e743dea28b280943b3cc7f8bbb871b57d110a7f2b9da2e6845c1c36bf170dd883fca54e463f5f49e0c3effe07fbd0db0f8cf5a12a2469d3f792af21a73fcdd') -options=('staticlibs' '!emptydirs') # 'debug' takes way too long to scan for the source files... - -# NINJAFLAGS is an env var used to pass commandline options to ninja -# NOTE: It's your responbility to validate the value of $NINJAFLAGS. If unsure, don't set it. - -_python_optimize() { - python -m compileall "$@" - python -O -m compileall "$@" - python -OO -m compileall "$@" -} - -pkgver() { - cd llvm-project/cmake/Modules - - # This will almost match the output of `llvm-config --version` when the - # LLVM_APPEND_VC_REV cmake flag is turned on. The only difference is - # dash being replaced with underscore because of Pacman requirements. - local _pkgver=$(awk -F 'MAJOR |MINOR |PATCH |)' \ - 'BEGIN { ORS="." ; i=0 } \ - /set\(LLVM_VERSION_/ { print $2 ; i++ ; if (i==2) ORS="" } \ - END { print "\n" }' \ - LLVMVersion.cmake)_r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) - echo "$_pkgver" -} - -prepare() { - cd llvm-project - # llvm-project contains a lot of stuff, remove parts that aren't used by this package - rm -rf "$srcdir"/fakeinstall - - cp -r $srcdir/SPIRV-LLVM-Translator llvm/projects -} - -build() { - CFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug} -fno-lto" - CXXFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug} -fno-lto" - CFLAGS+=' -I/usr/include/tensorflow' - CXXFLAGS+=' -I/usr/include/tensorflow' - CFLAGS+=' -fasynchronous-unwind-tables' - CXXFLAGS+=' -fasynchronous-unwind-tables' - LDFLAGS+=' -fasynchronous-unwind-tables' - - # export CC="clang -v" - # export CXX="clang++ -v" - - cmake \ - -B _build \ - -S llvm-project/llvm -G Ninja \ - -Wno-dev \ - -D CMAKE_C_FLAGS="$CFLAGS" \ - -D CMAKE_CXX_FLAGS="$CXXFLAGS" \ - -D CMAKE_BUILD_TYPE=Release \ - -D CMAKE_INSTALL_PREFIX=/usr \ - -D CMAKE_INSTALL_DOCDIR=/usr/share/doc \ - -D CMAKE_POSITION_INDEPENDENT_CODE=ON \ - -D LLVM_APPEND_VC_REV=ON \ - -D LLVM_HOST_TRIPLE="$CHOST" \ - -D LLVM_ENABLE_RTTI=ON \ - -D LLVM_ENABLE_FFI=ON \ - -D LLVM_BINUTILS_INCDIR=/usr/include \ - -D FFI_INCLUDE_DIR="$(pkg-config --variable=includedir libffi)" \ - -D LLVM_BUILD_LLVM_DYLIB=ON \ - -D LLVM_LINK_LLVM_DYLIB=ON \ - -D LLVM_ENABLE_BINDINGS=OFF \ - -D LLVM_INSTALL_UTILS=ON \ - -D LLVM_BUILD_DOCS=ON \ - -D LLVM_INCLUDE_DOCS=ON \ - -D LLVM_INCLUDE_BENCHMARKS=OFF \ - -D LLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR \ - -D LLVM_ENABLE_SPHINX=ON \ - -D SPHINX_OUTPUT_HTML=ON \ - -D SPHINX_OUTPUT_MAN=ON \ - -D SPHINX_WARNINGS_AS_ERRORS=OFF \ - -D LLVM_VERSION_SUFFIX="" \ - -D LLDB_ENABLE_PYTHON=ON \ - -D LLVM_ENABLE_PROJECTS="lldb;polly;compiler-rt;lld;clang-tools-extra;clang" \ - -D LLVM_ENABLE_DUMP=ON \ - -D LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv/ - - ninja -C _build LLVMgold all - DESTDIR="$srcdir/fakeinstall" ninja -C _build install -} - -_fakeinstall () { - local src f dir - for src; do - f="${src#fakeinstall/}" - dir="$pkgdir/${f%/*}" - install -m755 -d "$dir" - mv -v "$src" "$dir/" - done -} - -package_lldb-git() { - _pythonver="$(python -V | sed 's/.* \([0-9]\)\.\([0-9]*\)\..*/\1.\2/')" - - pkgdesc="Next generation, high-performance debugger (git version)" - url="https://lldb.llvm.org/" - depends=("clang-git=$pkgver-$pkgrel" "llvm-libs-git=$pkgver-$pkgrel" "lua53" "zstd" "libxml2" "python") - provides=("lldb=$pkgver") - replaces=('lldb-svn') - optdepends=('lua53: scripting support') - conflicts=('lldb' 'lldb-svn') - _fakeinstall fakeinstall/usr/bin/lldb* - _fakeinstall fakeinstall/usr/include/lldb - _fakeinstall fakeinstall/usr/lib/liblldb* - _fakeinstall fakeinstall/usr/lib/python"$_pythonver"/site-packages/lldb - _fakeinstall fakeinstall/usr/share/man/man1/lldb* - _fakeinstall fakeinstall/usr/share/doc/lldb/* - install -Dm644 "$srcdir"/llvm-project/lldb/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - rm -r "$pkgdir"/usr/share/doc/lldb/html/.buildinfo -} - -package_lld-git(){ - pkgdesc="Linker from the LLVM project" - url="https://lld.llvm.org" - depends=("llvm-libs-git=$pkgver-$pkgrel" "zstd") - provides=("lld=$pkgver") - replaces=('lld-svn') - conflicts=('lld' 'lld-svn') - - _fakeinstall fakeinstall/usr/include/lld - _fakeinstall fakeinstall/usr/lib/liblld* - _fakeinstall fakeinstall/usr/lib/cmake/lld/ - _fakeinstall fakeinstall/usr/bin/{lld*,*.lld,wasm-ld} - _fakeinstall fakeinstall/usr/share/doc/lld/* - install -Dm644 "$srcdir"/llvm-project/lld/docs/ld.lld.1 "$pkgdir/usr/share/man/man1" - install -Dm644 "$srcdir"/llvm-project/lld/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - rm -r "$pkgdir"/usr/share/doc/lld/html/{_sources,.buildinfo} -} - -package_polly-git() { - pkgdesc="Polly is a high-level loop and data-locality optimizer and optimization infrastructure for LLVM" - url="https://polly.llvm.org/" - depends=("llvm-libs-git=$pkgver-$pkgrel" 'glibc' 'gcc-libs') - provides=("polly=$pkgver") - replaces=('polly-svn') - conflicts=('polly' 'polly-svn') - - _fakeinstall fakeinstall/usr/include/polly - _fakeinstall fakeinstall/usr/lib/cmake/polly/ - _fakeinstall fakeinstall/usr/lib/*Polly* - install -Dm644 "$srcdir"/llvm-project/polly/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - _fakeinstall fakeinstall/usr/share/doc/polly/* - _fakeinstall fakeinstall/usr/share/man/man1/polly* - rm -r "$pkgdir"/usr/share/doc/polly/html/{_sources,.buildinfo} -} - -package_compiler-rt-git() { - pkgdesc="Compiler runtime libraries for clang (git version)" - url="https://compiler-rt.llvm.org/" - depends=('gcc-libs' "llvm-git=$pkgver-$pkgrel") - provides=("compiler-rt=$pkgver") - replaces=('compiler-rt-svn') - conflicts=('compiler-rt' 'compiler-rt-svn') - - local _llvmver=$(echo "$pkgver" | grep -Po "(^[\d]+)") - - _fakeinstall fakeinstall/usr/lib/clang/"$_llvmver"/lib/"$CHOST" - _fakeinstall fakeinstall/usr/lib/clang/"$_llvmver"/include/{sanitizer,xray} - _fakeinstall fakeinstall/usr/lib/clang/"$_llvmver"/share - - install -Dm644 "$srcdir"/llvm-project/clang/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_clang-git() { - _pythonver="$(python -V | sed 's/.* \([0-9]\)\.\([0-9]*\)\..*/\1.\2/')" - - pkgdesc="C language family frontend for LLVM (git version)" - url="http://clang.llvm.org/" - depends=("llvm-libs-git=$pkgver-$pkgrel" 'gcc' "compiler-rt-git=$pkgver-$pkgrel" "python-yaml") - optdepends=('llvm-git: refered by some clang-headers' - 'python: for scan-view and git-clang-format' - 'perl: for scanbuild, c++-analyzer, and ccc-analyzer') - provides=("clang=$pkgver" "clang-analyzer=$pkgver" "clang-tools-extra=$pkgver") - conflicts=('clang' 'clang-svn' 'clang-analyzer' 'clang-analyzer-svn' 'clang-tools-extra' 'clang-tools-extra-svn') - replaces=('clang-svn' 'clang-analyzer-svn' 'clang-tools-extra-svn') - - _fakeinstall fakeinstall/usr/bin/*clang* - _fakeinstall fakeinstall/usr/bin/{c-index-test,diagtool,find-all-symbols} - _fakeinstall fakeinstall/usr/bin/{hmaptool,modularize,scan-build,scan-build-py,scan-view,analyze-build,intercept-build} - _fakeinstall fakeinstall/usr/bin/pp-trace - - _fakeinstall fakeinstall/usr/include/clang* - - _fakeinstall fakeinstall/usr/lib/clang - _fakeinstall fakeinstall/usr/lib/libclang* - _fakeinstall fakeinstall/usr/lib/libfindAllSymbols* - _fakeinstall fakeinstall/usr/lib/cmake/clang - - _fakeinstall fakeinstall/usr/libexec - _fakeinstall fakeinstall/usr/share/doc/clang* - _fakeinstall fakeinstall/usr/share/clang - _fakeinstall fakeinstall/usr/share/scan{-build,-view} - _fakeinstall fakeinstall/usr/share/man/man1/{clang,diagtool,extraclangtools,scan-build}* - - # Remove documentation sources - rm -rf "$pkgdir"/usr/share/doc/clang{,-tools}/html/{_sources,.buildinfo} - - # Move scanbuild-py into site-packages and install Python bindings - local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - install -d "$pkgdir/$site_packages" - _fakeinstall fakeinstall/usr/lib/{libear,libscanbuild} - mv "$pkgdir"/usr/lib/{libear,libscanbuild} "$pkgdir/$site_packages/" - cp -a $srcdir/llvm-project/clang/bindings/python/clang "$pkgdir/$site_packages/" - - # Move analyzer scripts out of /usr/libexec - mv "$pkgdir"/usr/libexec/* "$pkgdir/usr/lib/clang/" - rmdir "$pkgdir/usr/libexec" - sed -i 's|libexec|lib/clang|' \ - "$pkgdir/usr/bin/scan-build" \ - "$pkgdir/$site_packages/libscanbuild/analyze.py" - - # Compile Python scripts - _python_optimize "$pkgdir/usr/share" "$pkgdir/$site_packages" - - install -Dm644 "$srcdir"/llvm-project/llvm/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_llvm-libs-git() { - pkgdesc="LLVM runtime libraries (git version)" - depends=('gcc-libs' 'zlib' 'libffi' 'libedit' 'libxml2' 'ncurses' 'tensorflow' 'zstd') - provides=("llvm-libs=$pkgver") - replaces=('llvm-libs-svn') - conflicts=('llvm-libs-svn' 'llvm-libs') - - _fakeinstall fakeinstall/usr/lib/libLLVM-*.so* - _fakeinstall fakeinstall/usr/lib/libLTO.so* - _fakeinstall fakeinstall/usr/lib/libRemarks.so.* - _fakeinstall fakeinstall/usr/lib/LLVMgold.so - install -d "$pkgdir/usr/lib/bfd-plugins" - ln -s ../LLVMgold.so "$pkgdir/usr/lib/bfd-plugins/LLVMgold.so" - - install -Dm644 "$srcdir"/llvm-project/llvm/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_spirv-llvm-translator-git() { - pkgdesc="Tool and a library for bi-directional translation between SPIR-V and LLVM IR" - depends=("llvm-git=$pkgver-$pkgrel" 'spirv-tools') - provides=('spirv-llvm-translator') - conflicts=('spirv-llvm-translator') - - _fakeinstall fakeinstall/usr/bin/llvm-spirv - _fakeinstall fakeinstall/usr/include/LLVMSPIRVLib - _fakeinstall fakeinstall/usr/lib/libLLVMSPIRVLib.* - _fakeinstall fakeinstall/usr/lib/pkgconfig/LLVMSPIRVLib.pc - - sed -i 's/17.0.0/18.0.0/g' $pkgdir/usr/lib/pkgconfig/LLVMSPIRVLib.pc - install -Dm644 "$srcdir"/llvm-project/llvm/projects/SPIRV-LLVM-Translator/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_llvm-git() { - pkgdesc="Collection of modular and reusable compiler and toolchain technologies (git version)" - depends=("llvm-libs-git=$pkgver-$pkgrel" 'perl' 'python-yaml' 'python-psutil' 'python-pygments' 'libxml2' 'zstd' 'libedit' 'libffi') - optdepends=('python-setuptools: for using lit (LLVM Integrated Tester)') - provides=("llvm=$pkgver") - replaces=('llvm-svn') - conflicts=('llvm' 'llvm-svn') - - _fakeinstall fakeinstall/usr/bin - _fakeinstall fakeinstall/usr/include/llvm* - _fakeinstall fakeinstall/usr/lib - _fakeinstall fakeinstall/usr/share - - # Include lit for running lit-based tests in other projects - pushd "$srcdir"/llvm-project/llvm/utils/lit - python3 setup.py install --root="$pkgdir" -O1 - popd - - cp "$pkgdir"/usr/bin/lit "$pkgdir"/usr/bin/llvm-lit - # Remove documentation sources - rm -rf "$pkgdir"/usr/share/doc/llvm/html/{_sources,.buildinfo} - # Remove libs which conflict with llvm-libs - rm -f "$pkgdir"/usr/lib/{libLLVM,libLTO,LLVMgold,libRemarks}.so - rm -f "$pkgdir"/usr/lib/python3.8/site-packages/six.py - # remove spirv-headers files - rm -rf fakeinstall/usr/include/spirv - rm -rf fakeinstall/usr/share/cmake/SPIRV-Headers - - if [[ $CARCH == x86_64 ]]; then - # Needed for multilib (https://bugs.archlinux.org/task/29951) - # Header stub is taken from Fedora - mv "$pkgdir/usr/include/llvm/Config/llvm-config"{,-64}.h - cp "$srcdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config.h" - fi - - install -Dm644 "$srcdir"/llvm-project/llvm/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} diff --git a/archlinuxcn/llvm-git/lilac.py b/archlinuxcn/llvm-git/lilac.py deleted file mode 100644 index 0648c0e0a190..000000000000 --- a/archlinuxcn/llvm-git/lilac.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/python3 - -import os.path - -build_args = ['-r', os.path.expanduser('~/chroots')] diff --git a/archlinuxcn/llvm-git/lilac.yaml b/archlinuxcn/llvm-git/lilac.yaml deleted file mode 100644 index 3d962b543aa7..000000000000 --- a/archlinuxcn/llvm-git/lilac.yaml +++ /dev/null @@ -1,21 +0,0 @@ -maintainers: - - github: solaraquarion -build_prefix: extra-x86_64 -pre_build: vcs_update -post_build: git_pkgbuild_commit -time_limit_hours: 2 -repo_makedepends: - - python-sphinx-automodapi - - spirv-headers-git - - spirv-tools-git -update_on: - - source: cmd - cmd: python -c "import time; print(int(time.time()) // (2 * 24 * 60 * 60))" - - source: alpm - from_pattern: ^(\d+\.\d+\.\d+).* - to_pattern: \1 - alpm: ocaml - repo: extra - - alias: python - - source: manual - manual: 1 diff --git a/archlinuxcn/llvm-git/llvm-config.h b/archlinuxcn/llvm-git/llvm-config.h deleted file mode 100644 index 2fa08c9be696..000000000000 --- a/archlinuxcn/llvm-git/llvm-config.h +++ /dev/null @@ -1,9 +0,0 @@ -#include - -#if __WORDSIZE == 32 -#include "llvm-config-32.h" -#elif __WORDSIZE == 64 -#include "llvm-config-64.h" -#else -#error "Unknown word size" -#endif diff --git a/archlinuxcn/mesa-git/LICENSE b/archlinuxcn/mesa-git/LICENSE deleted file mode 100644 index ae33d2709c44..000000000000 --- a/archlinuxcn/mesa-git/LICENSE +++ /dev/null @@ -1,82 +0,0 @@ -Disclaimer - -Mesa is a 3-D graphics library with an API which is very similar to -that of OpenGL* -To the extent that Mesa utilizes the OpenGL command syntax or state -machine, it is being used with authorization from Silicon Graphics, -Inc.(SGI). However, the author does not possess an OpenGL license -from SGI, and makes no claim that Mesa is in any way a compatible -replacement for OpenGL or associated with SGI. Those who want a -licensed implementation of OpenGL should contact a licensed -vendor. - -Please do not refer to the library as MesaGL (for legal -reasons). It's just Mesa or The Mesa 3-D graphics -library - -* OpenGL is a trademark of Silicon Graphics Incorporated. - -License / Copyright Information - -The Mesa distribution consists of several components. Different copyrights -and licenses apply to different components. For example, GLUT is copyrighted -by Mark Kilgard, some demo programs are copyrighted by SGI, some of the Mesa -device drivers are copyrighted by their authors. See below for a list of -Mesa's main components and the license for each. - -The core Mesa library is licensed according to the terms of the MIT license. -This allows integration with the XFree86, Xorg and DRI projects. - -The default Mesa license is as follows: - -Copyright (C) 1999-2007 Brian Paul All Rights Reserved. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Attention, Contributors - -When contributing to the Mesa project you must agree to the licensing terms -of the component to which you're contributing. -The following section lists the primary components of the Mesa distribution -and their respective licenses. - - -Mesa Component Licenses - -Component Location Primary Author License ----------------------------------------------------------------------------- -Main Mesa code src/mesa/ Brian Paul Mesa (MIT) - -Device drivers src/mesa/drivers/* See drivers See drivers - -Ext headers include/GL/glext.h SGI SGI Free B - include/GL/glxext.h - -GLUT src/glut/ Mark Kilgard Mark's copyright - -Mesa GLU library src/glu/mesa/ Brian Paul GNU-LGPL - -SGI GLU library src/glu/sgi/ SGI SGI Free B - -demo programs progs/demos/ various see source files - -X demos progs/xdemos/ Brian Paul see source files - -SGI demos progs/samples/ SGI SGI copyright - -RedBook demos progs/redbook/ SGI SGI copyright diff --git a/archlinuxcn/mesa-git/PKGBUILD b/archlinuxcn/mesa-git/PKGBUILD deleted file mode 100644 index d3d407cf1df8..000000000000 --- a/archlinuxcn/mesa-git/PKGBUILD +++ /dev/null @@ -1,461 +0,0 @@ -# Maintainer: Laurent Carlier -# Maintainer: Solomon Choina -# Contributor: Jan de Groot -# Contributor: Andreas Radke - -pkgbase=mesa-git -pkgname=('vulkan-mesa-layers-git' - 'opencl-clover-mesa-git' - 'opencl-rusticl-mesa-git' - 'vulkan-intel-git' - 'vulkan-nouveau-git' - 'vulkan-radeon-git' - 'vulkan-swrast-git' - 'vulkan-panfrost-git' - 'vulkan-virtio-git' - 'libva-mesa-driver-git' - 'mesa-vdpau-git' - 'mesa-git') -pkgdesc="mesa trunk (git version)" -epoch=1 -pkgver=24.2.0_devel.189777.930e4fa2833 -pkgrel=1 -groups=('chaotic-mesa-git') -arch=('x86_64') - -makedepends=('python-mako' - 'libxml2' - 'libx11' - 'libdrm' - 'xorgproto' - 'libxrandr' - 'valgrind' - 'libxshmfence' - 'libxxf86vm' - 'libxdamage' - 'libvdpau' - 'libva' - 'libxv' - 'polly-git' - 'wayland' - 'wayland-protocols' - 'elfutils' - 'llvm-git' - 'llvm-libs-git' - 'systemd' - 'libsystemd' - 'libomxil-bellagio' - 'libglvnd' - 'libunwind' - 'lm_sensors' - 'libxvmc' - 'libepoxy' - 'python-ply' - 'python-packaging' - 'xcb-util-keysyms' - 'cbindgen' - 'meson' - 'libclc-git' - 'clang-git' - 'glslang' - 'zstd' - 'vulkan-icd-loader' - 'git' - 'directx-headers-git' - 'rust-nightly' - 'spirv-tools-git' - 'rust-bindgen' - 'spirv-llvm-translator-git' - 'rustfmt-nightly' - ) -url="https://mesa3d.org" -license=('MIT AND BSD-3-Clause AND SGI-B-2.0') -source=('mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git' - 'meson-build-root.patch::https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29275.patch' - 'LICENSE') -options=(!lto) - -# Rust crates for NVK, used as Meson subprojects -declare -A _crates=( - proc-macro2 1.0.70 - quote 1.0.33 - syn 2.0.39 - unicode-ident 1.0.12 - paste 1.0.14 -) - -for _crate in "${!_crates[@]}"; do - source+=($_crate-${_crates[$_crate]}.tar.gz::https://crates.io/api/v1/crates/$_crate/${_crates[$_crate]}/download) -done - -sha256sums=('SKIP' - '0385b5021e47a0e13e2ed5c58f115d29c410e3b3ec28a9795fdc377333779ee0' - '7052ba73bb07ea78873a2431ee4e828f4e72bda7d176d07f770fa48373dec537' - '39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b' - '3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b' - '5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae' - 'de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c' - '23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a') - -pkgver() { - cd "$srcdir"/mesa - - read -r _ver - -pkgbase=python-sphinx-automodapi -_pyname=${pkgbase#python-} -pkgname=("python-${_pyname}" "python-${_pyname}-doc") -pkgver=0.17.0 -pkgrel=2 -pkgdesc="Sphinx extension for generating API documentation." -arch=('any') -url="https://sphinx-automodapi.readthedocs.io" -license=('BSD') -makedepends=('python-setuptools-scm' - 'python-wheel' - 'python-build' - 'python-installer' - 'python-sphinx' - 'python-sphinx_rtd_theme') -checkdepends=('python-pytest' - 'cython' - 'graphviz') # sphinx already in makedepends -source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") -sha256sums=('7ccdadad57add4aa9149d9f2bb5cf28c8f8b590280b4735b1156ea8355c423a1') - -get_pyver() { - python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))" -} - -build() { - cd ${srcdir}/${_pyname}-${pkgver} - python -m build --wheel --no-isolation - - msg "Building Docs" - PYTHONPATH="../build/lib" make -C docs html -} - -check() { - cd ${srcdir}/${_pyname}-${pkgver} - - #ln -rs ${srcdir}/${_pyname}-${pkgver}/${_pyname/-/_}*egg-info \ - # build/lib/${_pyname/-/_}-${pkgver}-py$(get_pyver .).egg-info - #PYTHONPATH="build/lib" pytest ${_pyname/-/_} || warning "Tests failed" - pytest || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count -} - -package_python-sphinx-automodapi() { - depends=('python-sphinx>=4') - optdepends=('python-sphinx_rtd_theme: rtd' - 'python-sphinx-automodapi-doc: Documentation for sphinx-automodapi') - cd ${srcdir}/${_pyname}-${pkgver} - - install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" - python -m installer --destdir="${pkgdir}" dist/*.whl -} - -package_python-sphinx-automodapi-doc() { - pkgdesc="Documentation for sphinx-automodapi" - cd ${srcdir}/${_pyname}-${pkgver}/docs/_build - - install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.rst - install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" - cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" -} diff --git a/archlinuxcn/python-sphinx-automodapi/lilac.yaml b/archlinuxcn/python-sphinx-automodapi/lilac.yaml deleted file mode 100644 index 08eca17ef077..000000000000 --- a/archlinuxcn/python-sphinx-automodapi/lilac.yaml +++ /dev/null @@ -1,13 +0,0 @@ -maintainers: - - github: solaraquarion - -build_prefix: extra-x86_64 - -pre_build: aur_pre_build - -post_build: aur_post_build - -update_on: - - source: aur - aur: python-sphinx-automodapi - - alias: python diff --git a/archlinuxcn/spirv-headers-git/PKGBUILD b/archlinuxcn/spirv-headers-git/PKGBUILD deleted file mode 100644 index 0b66866cb9e0..000000000000 --- a/archlinuxcn/spirv-headers-git/PKGBUILD +++ /dev/null @@ -1,33 +0,0 @@ -# Maintainer: xiretza -# Contributor: Bruce Zhang - -_pkgname=SPIRV-Headers -pkgname=spirv-headers-git -epoch=1 -pkgver=1.3.283.0.r10.g3c355ec -pkgrel=1 -pkgdesc='SPIR-V header files Git version' -arch=('any') -url='https://www.khronos.org/registry/spir-v/' -license=('MIT') -source=("git+https://github.com/KhronosGroup/$_pkgname.git") -sha1sums=('SKIP') -makedepends=('git' 'cmake') -conflicts=('spirv-headers') -provides=("spirv-headers=1:$pkgver") - -pkgver() { - cd "$_pkgname" - git describe --long --tags | sed 's/^[^0-9]*//; s/\([^-]*-g\)/r\1/; s/-/./g' -} - -build() { - cmake -B build -S "$_pkgname" \ - -DCMAKE_INSTALL_PREFIX=/usr - make -C build -} - -package() { - make -C build DESTDIR="$pkgdir" install - install -Dm644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" -} diff --git a/archlinuxcn/spirv-headers-git/lilac.yaml b/archlinuxcn/spirv-headers-git/lilac.yaml deleted file mode 100644 index 8730d136f6d0..000000000000 --- a/archlinuxcn/spirv-headers-git/lilac.yaml +++ /dev/null @@ -1,13 +0,0 @@ -maintainers: - - github: solaraquarion - email: shlomochoina@gmail.com - -build_prefix: extra-x86_64 - -pre_build: vcs_update - -post_build: git_pkgbuild_commit - -update_on: - - source: github - github: KhronosGroup/SPIRV-Headers diff --git a/archlinuxcn/spirv-tools-git/PKGBUILD b/archlinuxcn/spirv-tools-git/PKGBUILD deleted file mode 100644 index 9afd128a8d64..000000000000 --- a/archlinuxcn/spirv-tools-git/PKGBUILD +++ /dev/null @@ -1,79 +0,0 @@ -# Maintainer: Lone_Wolf -# Contributor: Eric Engestrom - -pkgname=spirv-tools-git -epoch=3 -pkgver="2024.3".3990.257cacfb3 -pkgrel=1 -pkgdesc='API and commands for processing SPIR-V modules' -url='https://github.com/KhronosGroup/SPIRV-Tools' -arch=('i686' 'x86_64') -license=('custom') -source=('git+https://github.com/KhronosGroup/SPIRV-Tools' - 'git+https://github.com/google/googletest.git' - 'git+https://github.com/google/effcee.git' - 'git+https://github.com/google/re2.git' - 'git+https://github.com/abseil/abseil-cpp.git' - 'https://github.com/KhronosGroup/SPIRV-Tools/commit/75ad1345d4af5268448a9b26797294b48795cd69.patch' -) -sha1sums=('SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - '23be87aa32fb5189b61975033c6a69035f4cb0e8') -depends=(glibc gcc-libs sh) -makedepends=(cmake python git spirv-headers-git) -conflicts=(spirv-tools) -provides=(spirv-tools) -options=(!debug) - -cmake_args=( - -G "Unix Makefiles" - -D CMAKE_BUILD_TYPE=Release - -D CMAKE_INSTALL_PREFIX=/usr - -D CMAKE_INSTALL_LIBDIR=lib - -D SPIRV-Headers_SOURCE_DIR=/usr/ - -D BUILD_SHARED_LIBS=ON - -D SPIRV_TOOLS_BUILD_STATIC=OFF - -D SPIRV_WERROR=OFF -) - -prepare() { - # link external sources so cmake can find them - pushd SPIRV-Tools/external - ln -s "$srcdir"/googletest - ln -s $srcdir/abseil-cpp abseil_cpp - ln -s "$srcdir"/effcee - ln -s "$srcdir"/re2 - popd - - patch --directory="SPIRV-Tools" --reverse --strip=1 --input="$srcdir"/75ad1345d4af5268448a9b26797294b48795cd69.patch - - cmake -S SPIRV-Tools -B _build "${cmake_args[@]}" -Wno-dev - make -C _build spirv-tools-build-version -} - -pkgver() { - local _ver1 _ver2 - # read fails if only 1 var is used - IFS="," read -r _ver1 _ver2 < _build/build-version.inc || [ -n "_ver1" ] - - cd SPIRV-Tools - echo ${_ver1//v/}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) -} - - - -build() { - make -C _build -} - -check() { - make -C _build test -} - -package() { - make -C _build DESTDIR="$pkgdir" install - install -Dm644 "$srcdir"/SPIRV-Tools/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE -} diff --git a/archlinuxcn/spirv-tools-git/lilac.yaml b/archlinuxcn/spirv-tools-git/lilac.yaml deleted file mode 100644 index 45b37873b345..000000000000 --- a/archlinuxcn/spirv-tools-git/lilac.yaml +++ /dev/null @@ -1,14 +0,0 @@ -maintainers: - - github: solaraquarion -build_prefix: extra-x86_64 - -pre_build: vcs_update -post_build: git_pkgbuild_commit - -repo_makedepends: - - spirv-headers-git -update_on: - - source: github - github: KhronosGroup/SPIRV-Tools - - source: manual - manual: 2