summaryrefslogtreecommitdiff
path: root/build-support
diff options
context:
space:
mode:
Diffstat (limited to 'build-support')
-rw-r--r--build-support/disabled/libfm-extra/PKGBUILD33
-rw-r--r--build-support/disabled/mesa/mesa177
-rw-r--r--build-support/disabled/python-no-opt-no-check/PKGBUILD65
-rw-r--r--build-support/disabled/python-setuptools-egg-info-manually30
-rw-r--r--build-support/disabled/python-urllib3/PKGBUILD28
-rw-r--r--build-support/disabled/python310/PKGBUILD73
-rw-r--r--build-support/disabled/rust-bin/PKGBUILD8
-rw-r--r--build-support/disabled/rust140/PKGBUILD (renamed from build-support/rust140/PKGBUILD)0
-rw-r--r--build-support/disabled/rust140/config.toml.patch (renamed from build-support/rust140/config.toml.patch)0
-rwxr-xr-xbuild-support/disabled/rust140/watcher.sh (renamed from build-support/rust140/watcher.sh)0
-rw-r--r--build-support/disabled/rust141/PKGBUILD (renamed from build-support/rust141/PKGBUILD)0
-rw-r--r--build-support/disabled/rust141/config.toml.patch (renamed from build-support/rust141/config.toml.patch)0
-rw-r--r--build-support/disabled/rust141/rustc-1.41.0-src-typenum-U1024.patch (renamed from build-support/rust141/rustc-1.41.0-src-typenum-U1024.patch)0
-rw-r--r--build-support/disabled/rust148/PKGBUILD (renamed from build-support/rust148/PKGBUILD)0
-rw-r--r--build-support/disabled/rust148/config.toml.patch (renamed from build-support/rust148/config.toml.patch)0
-rw-r--r--build-support/disabled/rust156-bin/PKGBUILD37
-rw-r--r--build-support/disabled/rust157-bin/PKGBUILD37
-rw-r--r--build-support/disabled/rust159-bin/PKGBUILD37
-rw-r--r--build-support/ghc90-bin/PKGBUILD65
-rw-r--r--build-support/ghc90-bin/ghc.install10
-rw-r--r--build-support/graphviz-dummy/PKGBUILD2
-rw-r--r--build-support/java15-openjdk/PKGBUILD289
-rw-r--r--build-support/java15-openjdk/freedesktop-java.desktop12
-rw-r--r--build-support/java15-openjdk/freedesktop-jconsole.desktop11
-rw-r--r--build-support/java15-openjdk/freedesktop-jshell.desktop9
-rw-r--r--build-support/java15-openjdk/install_jdk-openjdk.sh50
-rw-r--r--build-support/java15-openjdk/install_jre-openjdk-headless.sh48
-rw-r--r--build-support/java15-openjdk/install_jre-openjdk.sh35
m---------build-support/libldap240
-rw-r--r--build-support/libsigc++-docs-dummy/PKGBUILD2
-rw-r--r--build-support/ncurses5-compat-libs/PKGBUILD53
-rw-r--r--build-support/pacman-static/.SRCINFO109
-rw-r--r--build-support/pacman-static/PKGBUILD317
-rwxr-xr-xbuild-support/pacman-static/build-packages.sh28
-rw-r--r--build-support/pacman-static/ca-dir.patch31
-rw-r--r--build-support/pacman-static/nvchecker-deps.toml51
-rw-r--r--build-support/pacman-static/nvchecker-new.txt14
-rw-r--r--build-support/pacman-static/nvchecker-old.txt14
-rw-r--r--build-support/python-setuptools-bootstrap/PKGBUILD7
39 files changed, 1674 insertions, 8 deletions
diff --git a/build-support/disabled/libfm-extra/PKGBUILD b/build-support/disabled/libfm-extra/PKGBUILD
new file mode 100644
index 00000000..3ee20db8
--- /dev/null
+++ b/build-support/disabled/libfm-extra/PKGBUILD
@@ -0,0 +1,33 @@
+# breaking the cycle with menu-cache on i486
+depends=(${depends[@]//menu-cache/})
+depends_i686+=(menu-cache)
+depends_pentium4=("${depends_i686[@]}")
+
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s|./configure|./configure --with-extra-only |
+ /mv.*\/usr\/bin/d
+ '
+ )"
+
+ eval "$(
+ declare -f package_libfm | \
+ sed '
+ s/mv\(.*\)/(mv\1) || true/
+ '
+ )"
+ eval "$(
+ declare -f package_libfm-gtk2 | \
+ sed '
+ s/mv\(.*\)/(mv\1) || true/
+ '
+ )"
+ eval "$(
+ declare -f package_libfm-gtk3 | \
+ sed '
+ s/mv\(.*\)/(mv\1) || true/
+ '
+ )"
+fi
diff --git a/build-support/disabled/mesa/mesa b/build-support/disabled/mesa/mesa
new file mode 100644
index 00000000..81de2061
--- /dev/null
+++ b/build-support/disabled/mesa/mesa
@@ -0,0 +1,177 @@
+# disable openswf as it requires AVX, makes no sense with old CPUs
+# disable every new software rasterizer and take the old ones
+# see also FS32#39
+eval "$(
+ declare -f build | \
+ sed '
+ /arch-meson/s/\(gallium-drivers=.*\),swrast,swr/\1,swrast/
+ /arch-meson/s/\(-D swr-arches=\)avx,avx2/\1/
+ '
+ declare -f package_mesa | \
+ sed '
+ s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
+ '
+)"
+
+# See https://bugs.freedesktop.org/show_bug.cgi?id=93089
+# do not build/package vulkan on i486
+# do not build i915,i965 on i486
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/-D gallium-omx=bellagio //
+ s/-D gallium-opencl=\S\+ //
+ s/-D osmesa=true /-D osmesa=false /
+ s/\(-D gallium-\S\+=\)enabled /\1disabled /g
+ s/\(-D gallium-nine=\)true /\1false /g
+ s/\(-D vulkan-drivers=\)\S\+ /\1 /
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i915,/\1/
+ s/\(-D dri-drivers=\(\S\+,\)\?\)i965,/\1/
+ '
+ declare -f package_mesa | \
+ sed '
+ \,rm .*/vulkan;,d
+ \,bellagio,d
+ \,fakeinstall/usr/lib/d3d,d
+ \,fakeinstall/usr/lib/libOSMesa\.so\*,d
+ \,fakeinstall/usr/lib/libxatracker\.so\*,d
+ '
+ )"
+else
+ eval "$(
+ declare -f package_vulkan-intel package_vulkan-radeon package_opencl-mesa package_libva-mesa-driver package_mesa-vdpau | \
+ sed '
+ /^\s*{\s*$/ a arch=('"$(
+ printf '%s\n' "${arch[@]}" | \
+ grep -vxF 'i486' | \
+ tr '\n' ' '
+ )"')
+ '
+ )"
+fi
+
+# break cycle with conflicting installation files between mesa and libglvnd
+# (indirect dependency via libva)
+# i486-specific
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f package_mesa | \
+ sed '
+ $ i rm -rf $pkgdir/usr/include/EGL/egl.h \
+ rm -rf $pkgdir/usr/include/EGL/eglext.h \
+ rm -rf $pkgdir/usr/include/EGL/eglplatform.h \
+ rm -rf $pkgdir/usr/include/GL/gl.h \
+ rm -rf $pkgdir/usr/include/GL/glcorearb.h \
+ rm -rf $pkgdir/usr/include/GL/glext.h \
+ rm -rf $pkgdir/usr/include/GL/glx.h \
+ rm -rf $pkgdir/usr/include/GL/glxext.h \
+ rm -rf $pkgdir/usr/include/GLES2/gl2.h \
+ rm -rf $pkgdir/usr/include/GLES2/gl2ext.h \
+ rm -rf $pkgdir/usr/include/GLES2/gl2platform.h \
+ rm -rf $pkgdir/usr/include/GLES3/gl3.h \
+ rm -rf $pkgdir/usr/include/GLES3/gl31.h \
+ rm -rf $pkgdir/usr/include/GLES3/gl32.h \
+ rm -rf $pkgdir/usr/include/GLES3/gl3ext.h \
+ rm -rf $pkgdir/usr/include/GLES3/gl3platform.h \
+ rm -rf $pkgdir/usr/include/KHR/khrplatform.h \
+ rm -rf $pkgdir/usr/lib/pkgconfig/egl.pc \
+ rm -rf $pkgdir/usr/lib/pkgconfig/gl.pc \
+ rm -rf $pkgdir/usr/lib/pkgconfig/glesv2.pc
+ '
+ declare -f package_vulkan-mesa-layers | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_vulkan-swrast | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_vulkan-intel | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_vulkan-radeon | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_opencl-mesa | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_libva-mesa-driver | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_libva-mesa-vdpau | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ declare -f package_mesa-vdpau | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ )
+ "
+fi
+
+# add libdrm and libxshmfence explocitily for now, as deep down in th
+# dependency tree as reasonable instead of patching all packages failing above
+if [ "$CARCH" = 'i486' ]; then
+ depends+=(libdrm)
+ depends+=(libxshmfence)
+ depends+=(wayland)
+fi
+
+# defaults changed to SSE2 enabled by default, disable it
+if [ "$CARCH" = 'i686' -o "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/arch-meson /arch-meson -Dsse2=false /
+ '
+ )"
+fi
+
+# LTO on i486 results in out-of-memory
+if [ "$CARCH" == 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/-D b_lto=true/-D b_lto=false/
+ '
+ )"
+fi
+
+# libclc needs spirv-llvm-translator which throws heavily errors on 32-bit
+# LLVM_SPIRV :: DebugInfo/X86/dbg-declare-alloca.ll
+# LLVM_SPIRV :: DebugInfo/X86/dbg-declare-arg.ll
+# LLVM_SPIRV :: DebugInfo/X86/dbg-value-const-byref.ll
+# LLVM_SPIRV :: DebugInfo/X86/dw_op_minus_direct.ll
+# LLVM_SPIRV :: DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll
+# LLVM_SPIRV :: DebugInfo/X86/frame-register.ll
+# LLVM_SPIRV :: DebugInfo/X86/this-stack_value.ll
+# LLVM_SPIRV :: spirv-extensions-control.ll
+# LLVM_SPIRV :: transcoding/SPV_KHR_integer_dot_product-sat.ll
+# usually with segfaults in the middle of LLVM itself
+# this might be hopeless to get working
+makedepends=(${makedepends[@]//libclc/})
+eval "$(
+ declare -f build | \
+ sed '
+ s/-D gallium-opencl=icd/-D gallium-opencl=disabled/
+ '
+ declare -f package_opencl-mesa | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+)"
diff --git a/build-support/disabled/python-no-opt-no-check/PKGBUILD b/build-support/disabled/python-no-opt-no-check/PKGBUILD
new file mode 100644
index 00000000..357d41c1
--- /dev/null
+++ b/build-support/disabled/python-no-opt-no-check/PKGBUILD
@@ -0,0 +1,65 @@
+# tests run with -j4 per default effectively killing build slaves,
+# forcing single threaded execution of tests
+
+eval "$(
+ declare -f build | \
+ sed "
+ s/make /make EXTRATESTOPTS='-j 1' /
+ "
+)"
+
+eval "$(
+ declare -f check | \
+ sed "
+ s/ -m test.regrtest/ -m test.regrtest -j1/
+ "
+)"
+
+makedepends=(${makedepends[@]//xorg-server-xvfb/})
+makedepends_i686+=(xorg-server-xvfb)
+makedepends_pentium4=("${makedepends_i686[@]}")
+
+# skip xvfb stuff on i486
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ /export servernum=99/,/done/d
+ s/.*make/make/
+ '
+ )"
+ eval "$(
+ declare -f check | \
+ sed '
+ /export servernum=99/,/done/d
+ s/xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum"//
+ '
+ )"
+fi
+
+# ignore failing realtime scheduling test as the systemd-nspawn container
+# lacks the SYS_NICE capability (at least, I think so)
+# ERROR: test_sched_rr_get_interval (test.test_posix.PosixTester)
+# Bonus points for finding the option to ignore single tests in test_posix
+# test_gdb currently fails for unknown reasons, also not that important
+# test_socket tests take more than 1.5 hours, so ignoring them
+# Ignore test_cmath test_math test_turtle - they fail due to too low precision
+# on i686 (all of them - really? - actually, I just checket test_cmath)
+eval "$(
+ declare -f check | \
+ sed "
+ /-uall/ s/;\?$/ -x test_posix -x test_gdb -x test_socket -x test_cmath -x test_math -x test_turtle \\|\\| true/g
+ "
+)"
+
+# LTO, PDO takes too long
+eval "$(
+ declare -f build | \
+ sed "
+ s/--with-lto/--without-lto/
+ s/--enable-optimizations/--disable-optimizations/
+ "
+)"
+
+# for now disable testing
+unset check
diff --git a/build-support/disabled/python-setuptools-egg-info-manually b/build-support/disabled/python-setuptools-egg-info-manually
new file mode 100644
index 00000000..9320e0b6
--- /dev/null
+++ b/build-support/disabled/python-setuptools-egg-info-manually
@@ -0,0 +1,30 @@
+# create directory before installing (otherwise installing fails)
+eval "$(
+ declare -f package | \
+ sed '
+ 4 i mkdir build/scripts-3.10
+ '
+)"
+
+# ignore errors in tests, but execute the tests
+eval "$(
+ declare -f check | \
+ sed '
+ s/\(python.*\)/\1 || true/
+ '
+)"
+
+unset checkdepends
+unset check
+
+# egg-infos are not installed correctly, create them before and install
+# them manually
+eval "$(
+ declare -f package | \
+ sed '
+ 6 i python setup.py egg_info \
+ rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info \
+ mkdir "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info \
+ cp -R setuptools.egg-info/* "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info/.
+ '
+)"
diff --git a/build-support/disabled/python-urllib3/PKGBUILD b/build-support/disabled/python-urllib3/PKGBUILD
new file mode 100644
index 00000000..ab31fc8d
--- /dev/null
+++ b/build-support/disabled/python-urllib3/PKGBUILD
@@ -0,0 +1,28 @@
+# for now ignore failing TLS tests (not really comforting from a security
+# point of view, but it blocks stuff)
+# FAILED test/contrib/test_pyopenssl.py::TestSSL::test_ssl_read_timeout - urlli...
+# FAILED test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failed_fingerprint_verification
+# FAILED test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_read_timeout
+
+eval "$(
+ declare -f check | \
+ sed '
+ s/python setup.py pytest/python setup.py pytest || true/
+ '
+)"
+
+# breaking the cycle with python-spinx
+makedepends=(${makedepends[@]/python-sphinx-furo})
+makedepends=(${makedepends[@]/python-sphinx})
+eval "$(
+ declare -f build | \
+ sed '
+ /make html/d
+ '
+)"
+eval "$(
+ declare -f package_python-urllib3-doc | \
+ sed '
+ /cp.*_build\/html/d
+ '
+)"
diff --git a/build-support/disabled/python310/PKGBUILD b/build-support/disabled/python310/PKGBUILD
new file mode 100644
index 00000000..a15bcc7c
--- /dev/null
+++ b/build-support/disabled/python310/PKGBUILD
@@ -0,0 +1,73 @@
+# tests run with -j4 per default effectively killing build slaves,
+# forcing single threaded execution of tests
+
+eval "$(
+ declare -f build | \
+ sed "
+ s/make /make EXTRATESTOPTS='-j 1' /
+ "
+)"
+
+eval "$(
+ declare -f check | \
+ sed "
+ s/ -m test.regrtest/ -m test.regrtest -j1/
+ "
+)"
+
+makedepends=(${makedepends[@]//xorg-server-xvfb/})
+makedepends_i686+=(xorg-server-xvfb)
+makedepends_pentium4=("${makedepends_i686[@]}")
+
+# skip xvfb stuff on i486
+if [ "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ /export servernum=99/,/done/d
+ s/.*make/make/
+ '
+ )"
+ eval "$(
+ declare -f check | \
+ sed '
+ /export servernum=99/,/done/d
+ s/xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum"//
+ '
+ )"
+fi
+
+# ignore failing realtime scheduling test as the systemd-nspawn container
+# lacks the SYS_NICE capability (at least, I think so)
+# ERROR: test_sched_rr_get_interval (test.test_posix.PosixTester)
+# Bonus points for finding the option to ignore single tests in test_posix
+# test_gdb currently fails for unknown reasons, also not that important
+# test_socket tests take more than 1.5 hours, so ignoring them
+# Ignore test_cmath test_math test_turtle - they fail due to too low precision
+# on i686 (all of them - really? - actually, I just checket test_cmath)
+eval "$(
+ declare -f check | \
+ sed "
+ /-uall/ s/;\?$/ -x test_posix -x test_gdb -x test_socket -x test_cmath -x test_math -x test_turtle \\|\\| true/g
+ "
+)"
+
+# enable ensurepip
+eval "$(
+ declare -f build | \
+ sed "
+ s/--without-ensurepip/--with-ensurepip/
+ "
+)"
+
+# LTO, PDO takes too long
+eval "$(
+ declare -f build | \
+ sed "
+ s/--with-lto/--without-lto/
+ s/--enable-optimizations/--disable-optimizations/
+ "
+)"
+
+# for now disable testing
+unset check
diff --git a/build-support/disabled/rust-bin/PKGBUILD b/build-support/disabled/rust-bin/PKGBUILD
index cf4c5cc2..d6610764 100644
--- a/build-support/disabled/rust-bin/PKGBUILD
+++ b/build-support/disabled/rust-bin/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
pkgname=rust-bin
-pkgver=1.51.0
+pkgver=1.57.0
pkgrel=1
pkgdesc='Binary precompiled packages for Rust'
url='https://www.rust-lang.org/'
@@ -15,11 +15,11 @@ source_x86_64=("https://static.rust-lang.org/dist/rust-$pkgver-x86_64-unknown-li
source_pentium4=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
source_i686=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
-sha256sums_x86_64=('9e125977aa13f012a68fdc6663629c685745091ae244f0587dd55ea4e3a3e42f'
+sha256sums_x86_64=('ea0253784b2e5c22659ff148d492a68d2e11da734491714ebc61cc93896efcda'
'SKIP')
-sha256sums_pentium4=('de2e8ef724d89ba6f567f07ebacf5a244c7cdae30ee559f1913310eda38d9cd1'
+sha256sums_pentium4=('7e4ac8ca2874897099a3ceb89039ceee170f474a98ee247589fd6bca8dda7cfa'
'SKIP')
-sha256sums_i686=('de2e8ef724d89ba6f567f07ebacf5a244c7cdae30ee559f1913310eda38d9cd1'
+sha256sums_i686=('7e4ac8ca2874897099a3ceb89039ceee170f474a98ee247589fd6bca8dda7cfa'
'SKIP')
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
diff --git a/build-support/rust140/PKGBUILD b/build-support/disabled/rust140/PKGBUILD
index 6d05c3a7..6d05c3a7 100644
--- a/build-support/rust140/PKGBUILD
+++ b/build-support/disabled/rust140/PKGBUILD
diff --git a/build-support/rust140/config.toml.patch b/build-support/disabled/rust140/config.toml.patch
index 8d0762cd..8d0762cd 100644
--- a/build-support/rust140/config.toml.patch
+++ b/build-support/disabled/rust140/config.toml.patch
diff --git a/build-support/rust140/watcher.sh b/build-support/disabled/rust140/watcher.sh
index 98228b5d..98228b5d 100755
--- a/build-support/rust140/watcher.sh
+++ b/build-support/disabled/rust140/watcher.sh
diff --git a/build-support/rust141/PKGBUILD b/build-support/disabled/rust141/PKGBUILD
index afa6ad96..afa6ad96 100644
--- a/build-support/rust141/PKGBUILD
+++ b/build-support/disabled/rust141/PKGBUILD
diff --git a/build-support/rust141/config.toml.patch b/build-support/disabled/rust141/config.toml.patch
index 8d0762cd..8d0762cd 100644
--- a/build-support/rust141/config.toml.patch
+++ b/build-support/disabled/rust141/config.toml.patch
diff --git a/build-support/rust141/rustc-1.41.0-src-typenum-U1024.patch b/build-support/disabled/rust141/rustc-1.41.0-src-typenum-U1024.patch
index d1484d5c..d1484d5c 100644
--- a/build-support/rust141/rustc-1.41.0-src-typenum-U1024.patch
+++ b/build-support/disabled/rust141/rustc-1.41.0-src-typenum-U1024.patch
diff --git a/build-support/rust148/PKGBUILD b/build-support/disabled/rust148/PKGBUILD
index 9ed1cba8..9ed1cba8 100644
--- a/build-support/rust148/PKGBUILD
+++ b/build-support/disabled/rust148/PKGBUILD
diff --git a/build-support/rust148/config.toml.patch b/build-support/disabled/rust148/config.toml.patch
index 8d0762cd..8d0762cd 100644
--- a/build-support/rust148/config.toml.patch
+++ b/build-support/disabled/rust148/config.toml.patch
diff --git a/build-support/disabled/rust156-bin/PKGBUILD b/build-support/disabled/rust156-bin/PKGBUILD
new file mode 100644
index 00000000..a60bcd82
--- /dev/null
+++ b/build-support/disabled/rust156-bin/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
+
+pkgname=rust156-bin
+pkgver=1.56.0
+pkgrel=1
+pkgdesc='Binary precompiled packages for Rust'
+url='https://www.rust-lang.org/'
+arch=(x86_64 pentium4 i686)
+license=('MIT' 'Apache')
+provides=('rust' 'cargo')
+conflicts=('rust' 'cargo')
+options=('!emptydirs')
+
+source_x86_64=("https://static.rust-lang.org/dist/rust-$pkgver-x86_64-unknown-linux-gnu.tar.gz"{,.asc})
+source_pentium4=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+source_i686=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+
+sha256sums_x86_64=('5189cd56447f9d56fcd7a1966efe5a8efd19843fdfd6bf9a23a9acbc57b5e3f9'
+ 'SKIP')
+sha256sums_pentium4=('f5fa5686a79108959a2910c97cec7c642198efd2a617d7a1b6cfc97d33612fe0'
+ 'SKIP')
+sha256sums_i686=('f5fa5686a79108959a2910c97cec7c642198efd2a617d7a1b6cfc97d33612fe0'
+ 'SKIP')
+
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
+ '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
+
+case "${CARCH}" in
+ x86_64) _ARCH='x86_64-unknown-linux-gnu';;
+ i686|pentium4) _ARCH='i686-unknown-linux-gnu';;
+esac
+
+package() {
+ cd "rust-$pkgver-$_ARCH"
+
+ ./install.sh --prefix=/usr --destdir="$pkgdir"
+}
diff --git a/build-support/disabled/rust157-bin/PKGBUILD b/build-support/disabled/rust157-bin/PKGBUILD
new file mode 100644
index 00000000..01f3e801
--- /dev/null
+++ b/build-support/disabled/rust157-bin/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
+
+pkgname=rust157-bin
+pkgver=1.57.0
+pkgrel=1
+pkgdesc='Binary precompiled packages for Rust'
+url='https://www.rust-lang.org/'
+arch=(x86_64 pentium4 i686)
+license=('MIT' 'Apache')
+provides=('rust' 'cargo')
+conflicts=('rust' 'cargo')
+options=('!emptydirs')
+
+source_x86_64=("https://static.rust-lang.org/dist/rust-$pkgver-x86_64-unknown-linux-gnu.tar.gz"{,.asc})
+source_pentium4=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+source_i686=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+
+sha256sums_x86_64=('ea0253784b2e5c22659ff148d492a68d2e11da734491714ebc61cc93896efcda'
+ 'SKIP')
+sha256sums_pentium4=('7e4ac8ca2874897099a3ceb89039ceee170f474a98ee247589fd6bca8dda7cfa'
+ 'SKIP')
+sha256sums_i686=('7e4ac8ca2874897099a3ceb89039ceee170f474a98ee247589fd6bca8dda7cfa'
+ 'SKIP')
+
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
+ '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
+
+case "${CARCH}" in
+ x86_64) _ARCH='x86_64-unknown-linux-gnu';;
+ i686|pentium4) _ARCH='i686-unknown-linux-gnu';;
+esac
+
+package() {
+ cd "rust-$pkgver-$_ARCH"
+
+ ./install.sh --prefix=/usr --destdir="$pkgdir"
+}
diff --git a/build-support/disabled/rust159-bin/PKGBUILD b/build-support/disabled/rust159-bin/PKGBUILD
new file mode 100644
index 00000000..205e3d61
--- /dev/null
+++ b/build-support/disabled/rust159-bin/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
+
+pkgname=rust159-bin
+pkgver=1.59.0
+pkgrel=1
+pkgdesc='Binary precompiled packages for Rust'
+url='https://www.rust-lang.org/'
+arch=(x86_64 pentium4 i686)
+license=('MIT' 'Apache')
+provides=('rust' 'cargo')
+conflicts=('rust' 'cargo')
+options=('!emptydirs')
+
+source_x86_64=("https://static.rust-lang.org/dist/rust-$pkgver-x86_64-unknown-linux-gnu.tar.gz"{,.asc})
+source_pentium4=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+source_i686=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc})
+
+sha256sums_x86_64=('0c1c2da3fa26372e5178123aa5bb0fdcd4933fbad9bfb268ffbd71807182ecae'
+ 'SKIP')
+sha256sums_pentium4=('f57ebfafed1e857b2b1dc1a22cf1133766f68a0759dc2f717dec54a8d4385dec'
+ 'SKIP')
+sha256sums_i686=('f57ebfafed1e857b2b1dc1a22cf1133766f68a0759dc2f717dec54a8d4385dec'
+ 'SKIP')
+
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
+ '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
+
+case "${CARCH}" in
+ x86_64) _ARCH='x86_64-unknown-linux-gnu';;
+ i686|pentium4) _ARCH='i686-unknown-linux-gnu';;
+esac
+
+package() {
+ cd "rust-$pkgver-$_ARCH"
+
+ ./install.sh --prefix=/usr --destdir="$pkgdir"
+}
diff --git a/build-support/ghc90-bin/PKGBUILD b/build-support/ghc90-bin/PKGBUILD
new file mode 100644
index 00000000..beb4c2bf
--- /dev/null
+++ b/build-support/ghc90-bin/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Rudy Matela <rudy@matela.com.br>
+#
+# Contributor: Rudy Matela <rudy@matela.com.br>
+#
+# This package can coexist with the latest version of GHC.
+# If you would like to compile GHC yourself (AUR: ghc9.0),
+# you can use this to bootstrap compilation.
+pkgname=ghc90-bin
+pkgver=9.0.1
+pkgrel=1
+pkgdesc='Legacy binary GHC 9.0 installed on /usr/bin/ghc-9.0 (Feb/2021 - Feb/2021).'
+arch=('i486' 'i686' 'pentium4')
+url='http://www.haskell.org/ghc/'
+license=('custom')
+depends=('gcc' 'gmp' 'libffi' 'perl' 'ncurses5-compat-libs')
+makedepends=( 'perl' 'libxslt' 'docbook-xsl')
+checkdepends=('python2')
+install='ghc.install'
+options=('staticlibs')
+provides=('ghc9.0')
+conflicts=('ghc9.0')
+source=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-i386-deb9-linux.tar.xz")
+noextract=("ghc-${pkgver}-${CARCH}-deb10-linux.tar.xz")
+sha256sums=('880e37cea8328401bcfecfe4bb56eb85195f30135b140140b3f24094264f8ba5')
+
+prepare() {
+ # for some reason, bsdtar cannot unpack this file:
+ tar -xf "ghc-${pkgver}-i386-deb9-linux.tar.xz"
+ # see https://wiki.archlinux.org/index.php/PKGBUILD#noextract
+}
+
+build() {
+ cd ghc-${pkgver}
+
+ sed -i 's,"$bindir/ghc","$bindir/ghc-9.0",' utils/runghc/runghc.wrapper
+
+ ./configure \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/ghc-9.0
+}
+
+package() {
+ cd ghc-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ mv ${pkgdir}/usr/bin/ghc ${pkgdir}/usr/bin/ghc-9.0
+ mv ${pkgdir}/usr/bin/ghci ${pkgdir}/usr/bin/ghci-9.0
+ mv ${pkgdir}/usr/bin/ghc-pkg ${pkgdir}/usr/bin/ghc-pkg-9.0
+ mv ${pkgdir}/usr/bin/haddock ${pkgdir}/usr/bin/haddock-ghc-9.0
+ mv ${pkgdir}/usr/bin/hp2ps ${pkgdir}/usr/bin/hp2ps-ghc-9.0
+ mv ${pkgdir}/usr/bin/hpc ${pkgdir}/usr/bin/hpc-ghc-9.0
+ mv ${pkgdir}/usr/bin/hsc2hs ${pkgdir}/usr/bin/hsc2hs-ghc-9.0
+ mv ${pkgdir}/usr/bin/runghc ${pkgdir}/usr/bin/runghc-9.0
+ rm ${pkgdir}/usr/bin/runhaskell # use runghc-9.0 instead
+
+ mv ${pkgdir}/usr/share/man/man1/ghc.1 ${pkgdir}/usr/share/man/man1/ghc-9.0
+
+ install -d ${pkgdir}/usr/share/licenses/ghc-9.0
+ install -m644 LICENSE ${pkgdir}/usr/share/licenses/ghc-9.0
+
+ # for some reason I end up with the wrong LLVM target on IA-32,
+ # patch it
+ sed -i 's/,("LLVM target", ".*")/,("LLVM target", "i686-unknown-linux")/' ${pkgdir}/usr/lib/ghc-9.0.1/settings
+}
diff --git a/build-support/ghc90-bin/ghc.install b/build-support/ghc90-bin/ghc.install
new file mode 100644
index 00000000..68eed631
--- /dev/null
+++ b/build-support/ghc90-bin/ghc.install
@@ -0,0 +1,10 @@
+pre_upgrade() {
+ echo '==> Unregistering cabalized packages...'
+ [[ -d /usr/share/haskell-ghc-9.0 ]] && find /usr/share/haskell-ghc-9.0 -maxdepth 2 -name 'unregister.sh' -exec {} \;
+ echo '==> Done.'
+}
+
+post_upgrade() {
+ echo '==> All cabalized packages need to be reinstalled now.'
+ echo '==> See /usr/share/haskell-ghc-9.0/ and ghc-pkg-9.0 list --user for a tentative list of affected packages.'
+}
diff --git a/build-support/graphviz-dummy/PKGBUILD b/build-support/graphviz-dummy/PKGBUILD
index 4b34d330..4ec43649 100644
--- a/build-support/graphviz-dummy/PKGBUILD
+++ b/build-support/graphviz-dummy/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=graphviz-dummy
-pkgver='2.48.0'
+pkgver='2.50.0'
pkgrel='1'
pkgdesc='Graph visualization software - dummy package for i486'
url='https://www.graphviz.org/'
diff --git a/build-support/java15-openjdk/PKGBUILD b/build-support/java15-openjdk/PKGBUILD
new file mode 100644
index 00000000..f10f7fc1
--- /dev/null
+++ b/build-support/java15-openjdk/PKGBUILD
@@ -0,0 +1,289 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
+
+# TODO add test, see about packaging jtreg and using it here
+
+pkgbase=java15-openjdk
+pkgname=('jre15-openjdk-headless' 'jre15-openjdk' 'jdk15-openjdk' 'openjdk15-src' 'openjdk15-doc')
+_majorver=15
+_minorver=0
+_securityver=3
+_updatever=3
+pkgrel=1
+pkgver=${_majorver}.${_minorver}.${_securityver}.u${_updatever}
+_hg_tag=jdk-${_majorver}.${_minorver}.${_securityver}+${_updatever}
+arch=('x86_64' 'i486' 'i686' 'pentium4')
+url='https://openjdk.java.net/'
+license=('custom')
+makedepends=('jdk14-openjdk' 'cpio' 'unzip' 'zip' 'libelf' 'libcups' 'libx11'
+ 'libxrender' 'libxtst' 'libxt' 'libxext' 'libxrandr' 'alsa-lib'
+ 'graphviz' 'freetype2' 'libjpeg-turbo' 'giflib' 'libpng' 'lcms2'
+ 'libnet' 'bash' 'harfbuzz' 'gcc-libs' 'glibc')
+#source=(https://hg.openjdk.java.net/jdk-updates/jdk${_majorver}u/archive/${_hg_tag}.tar.gz
+source=(https://hg.openjdk.java.net/jdk-updates/jdk15u/archive/jdk-15.0.3+3.tar.gz
+ freedesktop-java.desktop
+ freedesktop-jconsole.desktop
+ freedesktop-jshell.desktop)
+sha256sums=('4bbd7a73354a2d244c7a075406339aa0ce4c5fc6be91a795af931f6dc95d067c'
+ '30b38fcbf1fcab6b33aea2e6d82e611f7d0ea974d1d11a87a262f598ba006fd9'
+ '971a71d0a80d6e5e47d5ea722b723088e86425a943a5c3615da95417c8f5aca2'
+ '77e45ece92bc9b0c638f5468c2050cc1dc4508308ec302e6910e793be97687ac')
+
+case "${CARCH}" in
+ x86_64) _JARCH='x86_64';;
+ i486|i686|pentium4) _JARCH='x86';;
+esac
+
+_jvmdir=/usr/lib/jvm/java-${_majorver}-openjdk
+_jdkdir=jdk${_majorver}u-${_hg_tag}
+_imgdir=${_jdkdir}/build/linux-${_JARCH}-server-release/images
+_imgdir="${_imgdir//--/-${_JARCH}-}"
+
+_nonheadless=(lib/libawt_xawt.{so,debuginfo}
+ lib/libjawt.{so,debuginfo}
+ lib/libjsound.{so,debuginfo}
+ lib/libsplashscreen.{so,debuginfo})
+
+build() {
+ cd ${_jdkdir}
+
+ NUM_PROC_OPT=''
+ MAKEFLAG_J=$(echo ${MAKEFLAGS} | sed -En 's/.*-j([0-9]+).*/\1/p')
+ if [ -n "${MAKEFLAG_J}" ]; then
+ # http://hg.openjdk.java.net/jdk10/jdk10/file/85e6cb013b98/make/InitSupport.gmk#l105
+ echo "Removing '-j${MAKEFLAG_J}' from MAKEFLAGS to prevent build fail. Passing it directly to ./configure."
+ export MAKEFLAGS=${MAKEFLAGS/-j${MAKEFLAG_J}/}
+ NUM_PROC_OPT="--with-num-cores=${MAKEFLAG_J}"
+ fi
+
+ # Avoid optimization of HotSpot to be lowered from O3 to O2
+ local _CFLAGS="${CFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon"
+ local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon"
+ local _LDFLAGS=${LDFLAGS}
+ if [[ $CARCH = i486 || $CARCH = i686 || $CARCH = pentium4 ]]; then
+ echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail with this architecture"
+ _CFLAGS=${CFLAGS/-fno-plt/}
+ _CXXFLAGS=${CXXFLAGS/-fno-plt/}
+ fi
+
+ # i486-specific
+ if [ "${CARCH}" = "i486" ]; then
+ _JARCH=i386
+ fi
+
+ # pentium4-specific
+ if [ "${CARCH}" = "pentium4" ]; then
+ _JARCH=i386
+ # force 4-byte stack alignment on SSE aptimized systems, see FS32#75
+ _CFLAGS+=" -mincoming-stack-boundary=2"
+ _CXXFLAGS+=" -mincoming-stack-boundary=2"
+ fi
+
+ # CFLAGS, CXXFLAGS and LDFLAGS are ignored as shown by a warning
+ # in the output of ./configure unless used like such:
+ # --with-extra-cflags="${CFLAGS}"
+ # --with-extra-cxxflags="${CXXFLAGS}"
+ # --with-extra-ldflags="${LDFLAGS}"
+ # See also paragraph "Configure Control Variables from "jdk${_majorver}-${_hg_tag}/common/doc/building.md
+ unset CFLAGS
+ unset CXXFLAGS
+ unset LDFLAGS
+
+ bash configure \
+ --with-version-build="${_updatever}" \
+ --with-version-pre="" \
+ --with-version-opt="" \
+ --with-stdc++lib=dynamic \
+ --with-extra-cflags="${_CFLAGS}" \
+ --with-extra-cxxflags="${_CXXFLAGS}" \
+ --with-extra-ldflags="${_LDFLAGS}" \
+ --with-libjpeg=system \
+ --with-giflib=system \
+ --with-libpng=system \
+ --with-lcms=system \
+ --with-zlib=system \
+ --enable-unlimited-crypto \
+ --disable-warnings-as-errors \
+ ${NUM_PROC_OPT}
+ #--disable-javac-server
+
+ make images legacy-jre-image docs
+
+ # https://bugs.openjdk.java.net/browse/JDK-8173610
+ find "../${_imgdir}" -iname '*.so' -exec chmod +x {} \;
+}
+
+check() {
+ cd jdk${_majorver}u-${_hg_tag}
+ # TODO package jtreg
+ # make -k check
+}
+
+package_jre15-openjdk-headless() {
+ pkgdesc="OpenJDK Java ${_majorver} headless runtime environment"
+ depends=('java-runtime-common>=3' 'ca-certificates-utils' 'nss' 'libjpeg-turbo' 'libjpeg.so'
+ 'lcms2' 'liblcms2.so' 'libnet' 'freetype2' 'libfreetype.so' 'harfbuzz' 'libharfbuzz.so'
+ 'glibc' 'gcc-libs')
+ optdepends=('java-rhino: for some JavaScript support')
+ provides=("java-runtime-headless=${_majorver}" "java-runtime-headless-openjdk=${_majorver}" "jre${_majorver}-openjdk-headless=${pkgver}-${pkgrel}")
+ backup=(etc/${pkgbase}/logging.properties
+ etc/${pkgbase}/management/jmxremote.access
+ etc/${pkgbase}/management/jmxremote.password.template
+ etc/${pkgbase}/management/management.properties
+ etc/${pkgbase}/net.properties
+ etc/${pkgbase}/security/java.policy
+ etc/${pkgbase}/security/java.security
+ etc/${pkgbase}/security/policy/README.txt
+ etc/${pkgbase}/security/policy/limited/default_US_export.policy
+ etc/${pkgbase}/security/policy/limited/default_local.policy
+ etc/${pkgbase}/security/policy/limited/exempt_local.policy
+ etc/${pkgbase}/security/policy/unlimited/default_US_export.policy
+ etc/${pkgbase}/security/policy/unlimited/default_local.policy
+ etc/${pkgbase}/sound.properties)
+ install=install_jre-openjdk-headless.sh
+
+ cd ${_imgdir}/jre
+
+ install -dm 755 "${pkgdir}${_jvmdir}"
+
+ cp -a bin lib \
+ "${pkgdir}${_jvmdir}"
+
+ for f in "${_nonheadless[@]}"; do
+ rm "${pkgdir}${_jvmdir}/${f}"
+ done
+
+ cp ../jdk/release "${pkgdir}${_jvmdir}"
+ cp ../jdk/lib/modules "${pkgdir}${_jvmdir}/lib"
+
+ # Conf
+ install -dm 755 "${pkgdir}/etc"
+ cp -r conf "${pkgdir}/etc/${pkgbase}"
+ ln -s /etc/${pkgbase} "${pkgdir}/${_jvmdir}/conf"
+
+ # Legal
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ cp -r legal "${pkgdir}/usr/share/licenses/${pkgbase}"
+ ln -s ${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s /usr/share/licenses/${pkgbase} "${pkgdir}/${_jvmdir}/legal"
+
+ # Man pages
+ for f in bin/*; do
+ f=$(basename "${f}")
+ _man=../jdk/man/man1/"${f}.1"
+ test -f "${_man}" && install -Dm 644 "${_man}" "${pkgdir}/usr/share/man/man1/${f}-openjdk${_majorver}.1"
+ done
+ ln -s /usr/share/man "${pkgdir}/${_jvmdir}/man"
+
+ # Link JKS keystore from ca-certificates-utils
+ rm -f "${pkgdir}${_jvmdir}/lib/security/cacerts"
+ ln -sf /etc/ssl/certs/java/cacerts "${pkgdir}${_jvmdir}/lib/security/cacerts"
+}
+
+package_jre15-openjdk() {
+ pkgdesc="OpenJDK Java ${_majorver} full runtime environment"
+ depends=("jre${_majorver}-openjdk-headless=${pkgver}-${pkgrel}" 'giflib' 'libgif.so'
+ 'glibc' 'gcc-libs' 'libpng')
+ optdepends=('alsa-lib: for basic sound support'
+ 'gtk2: for the Gtk+ 2 look and feel - desktop usage'
+ 'gtk3: for the Gtk+ 3 look and feel - desktop usage')
+ provides=("java-runtime=${_majorver}" "java-runtime-openjdk=${_majorver}" "jre${_majorver}-openjdk=${pkgver}-${pkgrel}")
+ install=install_jre-openjdk.sh
+
+ cd ${_imgdir}/jre
+
+ install -dm 755 "${pkgdir}${_jvmdir}"
+
+ for f in "${_nonheadless[@]}"; do
+ install -Dm 644 ${f} "${pkgdir}${_jvmdir}/${f}"
+ done
+
+ # Licenses
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ ln -s ${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_jdk15-openjdk() {
+ pkgdesc="OpenJDK Java ${_majorver} development kit"
+ depends=("jre${_majorver}-openjdk=${pkgver}-${pkgrel}" 'java-environment-common=3'
+ 'hicolor-icon-theme' 'libelf' 'glibc' 'gcc-libs')
+ provides=("java-environment=${_majorver}" "java-environment-openjdk=${_majorver}" "jdk${_majorver}-openjdk=${pkgver}-${pkgrel}")
+ install=install_jdk-openjdk.sh
+
+ cd ${_imgdir}/jdk
+
+ install -dm 755 "${pkgdir}${_jvmdir}"
+
+ cp -a bin demo include jmods lib \
+ "${pkgdir}${_jvmdir}"
+
+ rm "${pkgdir}${_jvmdir}/lib/src.zip"
+
+ # Remove files held by JRE
+ pushd ../jre
+ for d in bin lib; do
+ find ${d} ! -type d -exec rm "${pkgdir}${_jvmdir}/{}" \;
+ done
+ popd
+ find "${pkgdir}${_jvmdir}/lib" -type d -empty -delete
+
+ # Conf files all belong to JRE
+
+ # Legal
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ cp -r legal "${pkgdir}/usr/share/licenses/${pkgbase}"
+ pushd ../jre/legal
+ find . ! -type d -exec rm "${pkgdir}/usr/share/licenses/${pkgbase}/{}" \;
+ popd
+ find "${pkgdir}/usr/share/licenses" -type d -empty -delete
+ ln -s ${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ # Man pages
+ for f in bin/*; do
+ f=$(basename "${f}")
+ _man=man/man1/"${f}.1"
+ test -f "../jre/bin/${f}" && continue
+ test -f "${_man}" && install -Dm 644 "${_man}" "${pkgdir}/usr/share/man/man1/${f}-openjdk${_majorver}.1"
+ done
+
+ # Icons
+ for s in 16 24 32 48; do
+ install -Dm 644 \
+ "${srcdir}/jdk${_majorver}u-${_hg_tag}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png" \
+ "${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/${pkgbase}.png"
+ done
+
+ # Desktop files
+ for f in jconsole java jshell; do
+ install -Dm 644 \
+ "${srcdir}/freedesktop-${f}.desktop" \
+ "${pkgdir}/usr/share/applications/${f}-${pkgbase}.desktop"
+ done
+}
+
+package_openjdk15-src() {
+ pkgdesc="OpenJDK Java ${_majorver} sources"
+ # Depends on JDK to get license files
+ depends=("jdk${_majorver}-openjdk=${pkgver}-${pkgrel}")
+ provides=("openjdk${_majorver}-src=${pkgver}-${pkgrel}")
+
+ install -Dm 644 -t "${pkgdir}${_jvmdir}/lib" ${_imgdir}/jdk/lib/src.zip
+
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ ln -s ${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_openjdk15-doc() {
+ pkgdesc="OpenJDK Java ${_majorver} documentation"
+ # Depends on JDK to get license files
+ depends=("jdk${_majorver}-openjdk=${pkgver}-${pkgrel}")
+ provides=("openjdk${_majorver}-doc=${pkgver}-${pkgrel}")
+
+ install -dm 755 "${pkgdir}/usr/share/doc"
+ cp -r ${_imgdir}/docs "${pkgdir}/usr/share/doc/${pkgbase}"
+
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ ln -s ${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/build-support/java15-openjdk/freedesktop-java.desktop b/build-support/java15-openjdk/freedesktop-java.desktop
new file mode 100644
index 00000000..ea3bc146
--- /dev/null
+++ b/build-support/java15-openjdk/freedesktop-java.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=OpenJDK Java 15 Runtime
+Name[fi]=OpenJDK Java 15 - ajonaikainen ympäristö
+Comment=OpenJDK Java 15 Runtime
+Comment[fi]=OpenJDK Java 15 - ajonaikainen ympäristö
+Keywords=java;runtime
+Exec=/usr/lib/jvm/java-15-openjdk/bin/java -jar
+Terminal=false
+Type=Application
+Icon=java15-openjdk
+MimeType=application/x-java-archive;application/java-archive;application/x-jar;
+NoDisplay=true
diff --git a/build-support/java15-openjdk/freedesktop-jconsole.desktop b/build-support/java15-openjdk/freedesktop-jconsole.desktop
new file mode 100644
index 00000000..7a70f38a
--- /dev/null
+++ b/build-support/java15-openjdk/freedesktop-jconsole.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=OpenJDK Java 15 Console
+Name[fi]=OpenJDK Java 15 - konsoli
+Comment=OpenJDK Java 15 Monitoring & Management Console
+Comment[fi]=OpenJDK Java 15 - valvonta- ja hallintakonsoli
+Keywords=java;console;monitoring
+Exec=/usr/lib/jvm/java-15-openjdk/bin/jconsole
+Terminal=false
+Type=Application
+Icon=java15-openjdk
+Categories=Application;System;
diff --git a/build-support/java15-openjdk/freedesktop-jshell.desktop b/build-support/java15-openjdk/freedesktop-jshell.desktop
new file mode 100644
index 00000000..f64f79d6
--- /dev/null
+++ b/build-support/java15-openjdk/freedesktop-jshell.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=OpenJDK Java 15 Shell
+Comment=OpenJDK Java 15 Shell
+Keywords=java;shell
+Exec=/usr/lib/jvm/java-15-openjdk/bin/jshell
+Terminal=true
+Type=Application
+Icon=java15-openjdk
+Categories=Application;System;
diff --git a/build-support/java15-openjdk/install_jdk-openjdk.sh b/build-support/java15-openjdk/install_jdk-openjdk.sh
new file mode 100644
index 00000000..154be958
--- /dev/null
+++ b/build-support/java15-openjdk/install_jdk-openjdk.sh
@@ -0,0 +1,50 @@
+THIS_JDK='java-15-openjdk'
+
+fix_default() {
+ if [ ! -x /usr/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ echo ""
+ else
+ /usr/bin/archlinux-java get
+ fi
+}
+
+post_install() {
+ default=$(fix_default)
+ case ${default} in
+ "")
+ /usr/bin/archlinux-java set ${THIS_JDK}
+ ;;
+ ${THIS_JDK})
+ # Nothing
+ ;;
+ *)
+ echo "Default Java environment is already set to '${default}'"
+ echo "See 'archlinux-java help' to change it"
+ ;;
+ esac
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+post_upgrade() {
+ default=$(fix_default)
+ if [ -z "${default}" ]; then
+ /usr/bin/archlinux-java set ${THIS_JDK}
+ fi
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+pre_remove() {
+ if [ "x$(fix_default)" = "x${THIS_JDK}" ]; then
+ # Check JRE is still available
+ if [ -x /usr/lib/jvm/${THIS_JDK}/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ fi
+ fi
+}
diff --git a/build-support/java15-openjdk/install_jre-openjdk-headless.sh b/build-support/java15-openjdk/install_jre-openjdk-headless.sh
new file mode 100644
index 00000000..4c0bcdb8
--- /dev/null
+++ b/build-support/java15-openjdk/install_jre-openjdk-headless.sh
@@ -0,0 +1,48 @@
+THIS_JRE='java-15-openjdk'
+
+fix_default() {
+ if [ ! -x /usr/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ echo ""
+ else
+ /usr/bin/archlinux-java get
+ fi
+}
+
+post_install() {
+ default=$(fix_default)
+ case ${default} in
+ "")
+ /usr/bin/archlinux-java set ${THIS_JRE}
+ ;;
+ ${THIS_JRE})
+ # Nothing
+ ;;
+ *)
+ echo "Default Java environment is already set to '${default}'"
+ echo "See 'archlinux-java help' to change it"
+ ;;
+ esac
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+post_upgrade() {
+ if [ -z "$(fix_default)" ]; then
+ /usr/bin/archlinux-java set ${THIS_JRE}
+ fi
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+pre_remove() {
+ default=$(fix_default)
+ if [ "x${default}" = "x${THIS_JRE}" ]; then
+ /usr/bin/archlinux-java unset
+ echo "No Java environment is set as default anymore"
+ fi
+}
diff --git a/build-support/java15-openjdk/install_jre-openjdk.sh b/build-support/java15-openjdk/install_jre-openjdk.sh
new file mode 100644
index 00000000..c55c4aef
--- /dev/null
+++ b/build-support/java15-openjdk/install_jre-openjdk.sh
@@ -0,0 +1,35 @@
+THIS_JRE='java-15-openjdk'
+
+fix_default() {
+ if [ ! -x /usr/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ echo ""
+ else
+ /usr/bin/archlinux-java get
+ fi
+}
+
+post_install() {
+ default=$(fix_default)
+ case ${default} in
+ "")
+ /usr/bin/archlinux-java set ${THIS_JRE}
+ ;;
+ ${THIS_JRE})
+ # Nothing
+ ;;
+ *)
+ echo "Default Java environment is already set to '${default}'"
+ echo "See 'archlinux-java help' to change it"
+ ;;
+ esac
+
+ echo "when you use a non-reparenting window manager,"
+ echo "set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh"
+}
+
+post_upgrade() {
+ if [ -z "$(fix_default)" ]; then
+ /usr/bin/archlinux-java set ${THIS_JRE}
+ fi
+}
diff --git a/build-support/libldap24 b/build-support/libldap24
new file mode 160000
+Subproject 005c005b4d740535271cee88b3650c5b777176f
diff --git a/build-support/libsigc++-docs-dummy/PKGBUILD b/build-support/libsigc++-docs-dummy/PKGBUILD
index 1fea693a..1b6453d9 100644
--- a/build-support/libsigc++-docs-dummy/PKGBUILD
+++ b/build-support/libsigc++-docs-dummy/PKGBUILD
@@ -1,5 +1,5 @@
pkgname='libsigc++-docs-dummy'
-pkgver='2.10.7'
+pkgver='2.10.8'
pkgrel='1'
arch=('i486' 'i686' 'pentium4' 'x86_64')
pkgdesc="Developer documentation for libsigc++ - dummy package"
diff --git a/build-support/ncurses5-compat-libs/PKGBUILD b/build-support/ncurses5-compat-libs/PKGBUILD
new file mode 100644
index 00000000..a8e40fd1
--- /dev/null
+++ b/build-support/ncurses5-compat-libs/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Maintainer: Mateusz Gozdek <mgozdekof@gmail.com>
+# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=ncurses5-compat-libs
+_pkgname=ncurses
+pkgver=6.2
+pkgrel=1
+pkgdesc='System V Release 4.0 curses emulation library, ABI 5'
+arch=(i486 i686 pentium4 x86_64)
+url='http://invisible-island.net/ncurses/ncurses.html'
+license=(MIT)
+depends=(glibc gcc-libs sh)
+provides=(libtinfo5)
+conflicts=(libtinfo5)
+source=(https://ftp.gnu.org/pub/gnu/ncurses/ncurses-$pkgver.tar.gz{,.sig})
+sha256sums=('30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'
+ 'SKIP')
+validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB') # Thomas Dickey
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-shared \
+ --with-normal \
+ --without-debug \
+ --without-ada \
+ --enable-widec \
+ --disable-pc-files \
+ --with-cxx-binding \
+ --with-cxx-shared \
+ --with-versioned-syms \
+ --with-abi-version=5
+ make
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="$pkgdir" install.libs
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ rm -rf "$pkgdir/usr/include/" "$pkgdir/usr/lib/pkgconfig" \
+ "$pkgdir"/usr/lib/*.so "$pkgdir"/usr/lib/*.a
+
+ for lib in ncurses ncurses++ form panel menu; do
+ ln -s /usr/lib/lib${lib}w.so.5 "$pkgdir/usr/lib/lib${lib}.so.5"
+ done
+ ln -s /usr/lib/libncurses.so.5 "$pkgdir/usr/lib/libtinfo.so.5"
+ ln -s /usr/lib/libncurses.so.5 "$pkgdir/usr/lib/libtic.so.5"
+}
diff --git a/build-support/pacman-static/.SRCINFO b/build-support/pacman-static/.SRCINFO
new file mode 100644
index 00000000..d610abb3
--- /dev/null
+++ b/build-support/pacman-static/.SRCINFO
@@ -0,0 +1,109 @@
+pkgbase = pacman-static
+ pkgdesc = Statically-compiled pacman (to fix or install systems without libc)
+ pkgver = 6.0.0
+ pkgrel = 1
+ url = https://www.archlinux.org/pacman/
+ arch = i686
+ arch = x86_64
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = GPL
+ makedepends = meson
+ makedepends = musl
+ makedepends = kernel-headers-musl
+ depends = pacman
+ options = !emptydirs
+ source = https://sources.archlinux.org/other/pacman/pacman-6.0.0.tar.xz
+ source = https://sources.archlinux.org/other/pacman/pacman-6.0.0.tar.xz.sig
+ source = https://github.com/nghttp2/nghttp2/releases/download/v1.43.0/nghttp2-1.43.0.tar.xz
+ source = https://c-ares.haxx.se/download/c-ares-1.17.1.tar.gz
+ source = https://c-ares.haxx.se/download/c-ares-1.17.1.tar.gz.asc
+ source = https://curl.haxx.se/download/curl-7.77.0.tar.gz
+ source = https://curl.haxx.se/download/curl-7.77.0.tar.gz.asc
+ source = https://www.openssl.org/source/openssl-1.1.1k.tar.gz
+ source = https://www.openssl.org/source/openssl-1.1.1k.tar.gz.asc
+ source = ca-dir.patch
+ source = https://zlib.net/zlib-1.2.11.tar.gz
+ source = https://zlib.net/zlib-1.2.11.tar.gz.asc
+ source = https://tukaani.org/xz/xz-5.2.5.tar.gz
+ source = https://tukaani.org/xz/xz-5.2.5.tar.gz.sig
+ source = https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
+ source = https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz.sig
+ source = https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.zst
+ source = https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.zst.sig
+ source = https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.42.tar.bz2
+ source = https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.42.tar.bz2.sig
+ source = https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2
+ source = https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2.sig
+ source = https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.15.1.tar.bz2
+ source = https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.15.1.tar.bz2.sig
+ source = https://github.com/libarchive/libarchive/releases/download/3.5.1/libarchive-3.5.1.tar.xz
+ source = https://github.com/libarchive/libarchive/releases/download/3.5.1/libarchive-3.5.1.tar.xz.asc
+ validpgpkeys = 6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD
+ validpgpkeys = B8151B117037781095514CA7BBDFFC92306B1121
+ validpgpkeys = 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2
+ validpgpkeys = 8657ABB260F056B1E5190839D9C4D26D0E604491
+ validpgpkeys = 7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C
+ validpgpkeys = 5ED46A6721D365587791E2AA783FCD8E58BCAFBA
+ validpgpkeys = 3690C240CE51B4670D30AD1C38EE757D69184620
+ validpgpkeys = EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A
+ validpgpkeys = 4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD
+ validpgpkeys = 6DAA6E64A76D2840571B4902528897B826403ADA
+ validpgpkeys = 031EC2536E580D8EA286A9F22071B08A33BD3F06
+ validpgpkeys = A5A45B12AD92D964B89EEE2DEC560C81CEC2276E
+ sha512sums = 78fc5b70a2fc356746f8a4580ce7fd01b25b3463db1b9b008f02a97e22c236fdb1d09985769caf6ac675d9b1091ba0f71afa38ec5759cf7911f1b1a33586f563
+ sha512sums = SKIP
+ sha512sums = eac69ba356870a1cba420a06771082897be8dd40a68f4e04223f41f3d22626e4f5b3766d3dbcc496dd212be01f64c3ac280a2ebddd31dd88f7350c20f56e5d39
+ sha512sums = b11887bcc9274d368088e1a8b6aca62414f20675cf0bc58e948f54fa04c327c39dd23cefe7509eec6397db14b550a3f6b77f5c18b3d735b3eef48ce2da1dcd00
+ sha512sums = SKIP
+ sha512sums = cacd85eb9b2ad90f59595b497035f4660b6c5cff2d653da939c9ceac6dd8dd4bc7bdcb2dfd251862af0c29b9299312bf7271ed0249734fca979c9588799635d6
+ sha512sums = SKIP
+ sha512sums = 73cd042d4056585e5a9dd7ab68e7c7310a3a4c783eafa07ab0b560e7462b924e4376436a6d38a155c687f6942a881cfc0c1b9394afcde1d8c46bf396e7d51121
+ sha512sums = SKIP
+ sha512sums = 3857c298663728a465b5f95a3ef44547efbfb420d755e9dde7f20aa3905171b400e1c126d8db5c2b916c733bbd0724d8753cad16c9baf7b12dcd225a3ee04a97
+ sha512sums = 73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae
+ sha512sums = SKIP
+ sha512sums = 7443674247deda2935220fbc4dfc7665e5bb5a260be8ad858c8bd7d7b9f0f868f04ea45e62eb17c0a5e6a2de7c7500ad2d201e2d668c48ca29bd9eea5a73a3ce
+ sha512sums = SKIP
+ sha512sums = 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3
+ sha512sums = SKIP
+ sha512sums = 071b4596afbb290fdfab0021b1ddda3e24f508680c643259ced683ec4685fca186f6c9c111097594d2d2911976df1a2f92a321ae71a0d5b9734c9f8e2c1bff76
+ sha512sums = SKIP
+ sha512sums = f6d95712a874edefc39a7746062c8037a62801a550560c5b2eab08b5b86987c1de5be60eba5fcb56d35a37db109aa32d07b7eff2bb99800c1c47d2227421a8f4
+ sha512sums = SKIP
+ sha512sums = 70117f77aa43bbbe0ed28da5ef23834c026780a74076a92ec775e30f851badb423e9a2cb9e8d142c94e4f6f8a794988c1b788fd4bd2271e562071adf0ab16403
+ sha512sums = SKIP
+ sha512sums = 1d75a848cce6389f7cb8896b57a28dfe1dc5a447bfb4f128b0994a43e04134343400a3be063e971f03dfd595474cfd558519741d5d56afb3e84853ad4f2a45c2
+ sha512sums = SKIP
+ sha512sums = 04ad3e98e840fee19eb4c2652f29eccef1cffc071fd5c6a6feb358fea6048699281c7baacbb9ca8f823b1bfaaef6d4c87d9cf6a8b0c28aab53b75b2d259b2045
+ sha512sums = SKIP
+ b2sums = 79443cbee5df7b367267c70da04d570455a42d9cfa2e623333fd30e640d3cd9f01da382134efcd1c84202331499fd134b23dde8788a89f6949f0eb40e0e7a38b
+ b2sums = SKIP
+ b2sums = 0e6c674486c484558a55822501a13ac93c4e890cf62749bc8519690f468912701329b7b9e83b0b68c3f35b72442b1ed47a90050cccd3fc05d79622e1e26634dc
+ b2sums = 31dac21ecae231e2a201dc1ba954c1a0663a06f93eb8e7e033ca3c6d385f53e07af0b04854739f1ee8a7f0693f67f620143e152ef092b49342c62279a0480905
+ b2sums = SKIP
+ b2sums = b75e0de2f4134444d62c4495e11045181bb10624c0b48efcfdd45d18749936293b9f1b1f3b59b7c80e997d144a6be266b3cd945a147281a193aa040b6995e6be
+ b2sums = SKIP
+ b2sums = e9bd90f17bc819c4960d07bbee04346e8a7adb87a764a09d033ef76f1d638c67b180c4f2beb84ec25fbff54ccc9c14c13b9b16a27cac231a5dd22b02635d5cec
+ b2sums = SKIP
+ b2sums = e2ff99e8236487f43171c771d0ee89137b73f3d0b2756bcb0d6525c810ffa9f5a3763c3744327fb47cef21eabfc50fff96632f4bbe2cd244206a99daffa0c25a
+ b2sums = 6bfc4bca5dcadba8a0d4121a2b3ed0bfe440c261003521862c8e6381f1a6f0a72d3fc037351d30afd7ef321e8e8d2ec817c046ac749f2ca0c97fbdc2f7e840b7
+ b2sums = SKIP
+ b2sums = aded57324e129572c41646b3cc3b0b59a459452d9338d9245663b63dac2a463fb1f1b2b1d2d4ad3c09cb71fb8439df52cd94f24db99e782fc899b94a288a3043
+ b2sums = SKIP
+ b2sums = 22ab3acd84f4db8c3d6f59340c252faedfd4447cea00dafbd652e65b6cf8a20adf6835c22e58563004cfafdb15348c924996230b4b23cae42da5e25eeac4bdad
+ b2sums = SKIP
+ b2sums = cfea18b2347bf893d9bd461e57113d0a141040a1f7a42db6221ed9662f84023f45b058df3382cc06d82596f8eb98e0806f3abe1e79155fafd46da2a8b746bfbe
+ b2sums = SKIP
+ b2sums = eb3381ec7106cfe5dca333391f473e97b03df83f247d3067e9f933ed7206f826e59d2b74b8c28d41e785ffe1c2980b680470064eb2fa2ff1ee3d8fa8be5b81a8
+ b2sums = SKIP
+ b2sums = 24952e97c757b97c387ab4c2c4bf7b040f2874e9326c129805c7f5326fa14d80e083b0842e336a635531a2c8d4a66d428c816bae6b175f1c4518add1ffa3554d
+ b2sums = SKIP
+ b2sums = d3a6ccaa35360ed3fc79364dfcc3f2fdcb70e5e41ac72ef011373a39d5def9be9ce1be45843ab65a87630d3fc570d29db5f40b9a273aa8e281464c9d1d3477de
+ b2sums = SKIP
+ b2sums = 0be26a858bffc48bc3dea64e7ea16a703fd7dae1c37dd93e1acde291b6799e323461b3b0bb31c12f63e3429aa4be72d88636606d786978f8d56b94dd2dc144c7
+ b2sums = SKIP
+
+pkgname = pacman-static
diff --git a/build-support/pacman-static/PKGBUILD b/build-support/pacman-static/PKGBUILD
new file mode 100644
index 00000000..6ee24a60
--- /dev/null
+++ b/build-support/pacman-static/PKGBUILD
@@ -0,0 +1,317 @@
+# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
+
+# All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds
+
+pkgname=pacman-static
+pkgver=6.0.1
+_cares_ver=1.17.2
+_nghttp2_ver=1.45.1
+_curlver=7.78.0
+_sslver=1.1.1l
+_zlibver=1.2.11
+_xzver=5.2.5
+_bzipver=1.0.8
+_zstdver=1.5.0
+_libarchive_ver=3.5.2
+_gpgerrorver=1.42
+_libassuanver=2.5.5
+_gpgmever=1.16.0
+pkgrel=1
+pkgdesc="Statically-compiled pacman (to fix or install systems without libc)"
+arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
+url="https://www.archlinux.org/pacman/"
+license=('GPL')
+depends=('pacman')
+makedepends=('meson' 'musl' 'kernel-headers-musl')
+options=('!emptydirs')
+
+# pacman
+source=("https://sources.archlinux.org/other/pacman/pacman-${pkgver}.tar.xz"{,.sig})
+validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
+ 'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
+# nghttp2
+source+=("https://github.com/nghttp2/nghttp2/releases/download/v$_nghttp2_ver/nghttp2-$_nghttp2_ver.tar.xz")
+# c-ares
+source+=("https://c-ares.haxx.se/download/c-ares-${_cares_ver}.tar.gz"{,.asc})
+validpgpkeys+=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg <daniel@haxx.se>
+# curl
+source+=("https://curl.haxx.se/download/curl-${_curlver}.tar.gz"{,.asc})
+# openssl
+source+=("https://www.openssl.org/source/openssl-${_sslver}.tar.gz"{,.asc}
+ "ca-dir.patch")
+validpgpkeys+=('8657ABB260F056B1E5190839D9C4D26D0E604491' # Matt Caswell <matt@openssl.org>
+ '7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C') # Richard Levitte <levitte@openssl.org>
+# zlib
+source+=("https://zlib.net/zlib-${_zlibver}.tar.gz"{,.asc})
+validpgpkeys+=('5ED46A6721D365587791E2AA783FCD8E58BCAFBA') # Mark Adler <madler@alumni.caltech.edu>
+# xz
+source+=("https://tukaani.org/xz/xz-${_xzver}.tar.gz"{,.sig})
+validpgpkeys+=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
+# bzip2
+source+=("https://sourceware.org/pub/bzip2/bzip2-${_bzipver}.tar.gz"{,.sig})
+validpgpkeys+=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark@klomp.org>
+# zstd
+source+=("https://github.com/facebook/zstd/releases/download/v${_zstdver}/zstd-${_zstdver}.tar.zst"{,.sig})
+validpgpkeys+=('4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD') # Zstandard Release Signing Key <signing@zstd.net>
+# libgpg-error
+source+=("https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${_gpgerrorver}.tar.bz2"{,.sig})
+validpgpkeys+=('6DAA6E64A76D2840571B4902528897B826403ADA' # "Werner Koch (dist signing 2020)"
+ '031EC2536E580D8EA286A9F22071B08A33BD3F06') # NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>
+# libassuan
+source+=("https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${_libassuanver}.tar.bz2"{,.sig})
+# gpgme
+source+=("https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${_gpgmever}.tar.bz2"{,.sig})
+# libarchive
+source+=("https://github.com/libarchive/libarchive/releases/download/v${_libarchive_ver}/libarchive-${_libarchive_ver}.tar.xz"{,.asc})
+validpgpkeys+=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E') # Martin Matuska <mm@FreeBSD.org>
+
+sha512sums=('d17b9aea9f8d51a5a02fc9faa8e36227c0edea73957cc8a8174a23a81ca42737ecfce630aa86008ab26daec584004b772cd2eb3527aeef9e098b445edaa21f6f'
+ 'SKIP'
+ '320a8c9f29b58c55df98be4312d415bc406edbdfb0765aa37570cdb472a84f40c4f95a51c44c5488363c16ad6815c75b5503b32e43d94724c54117ff583c7150'
+ 'f625e0ef8508af6475d3e83b51ab29be8a4878e2a87e7f518bea046b76a74bfde7043ca6ec2a9e714c898ab9e5d4a5a678c3347a9f9eb68980438f7ca8ae3fc8'
+ 'SKIP'
+ '3d74343e06dd3d699f4c883758775554956f7f27de470b71f4af0d7f56ff5e4d7c534ab958c8926fae69cd0ded90c173ac3d5a6ad5518d88c2f39f31f8bba2f3'
+ 'SKIP'
+ 'd9611f393e37577cca05004531388d3e0ebbf714894cab9f95f4903909cd4f45c214faab664c0cbc3ad3cca309d500b9e6d0ecbf9a0a0588d1677dc6b047f9e0'
+ 'SKIP'
+ '3857c298663728a465b5f95a3ef44547efbfb420d755e9dde7f20aa3905171b400e1c126d8db5c2b916c733bbd0724d8753cad16c9baf7b12dcd225a3ee04a97'
+ '73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae'
+ 'SKIP'
+ '7443674247deda2935220fbc4dfc7665e5bb5a260be8ad858c8bd7d7b9f0f868f04ea45e62eb17c0a5e6a2de7c7500ad2d201e2d668c48ca29bd9eea5a73a3ce'
+ 'SKIP'
+ '083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3'
+ 'SKIP'
+ '071b4596afbb290fdfab0021b1ddda3e24f508680c643259ced683ec4685fca186f6c9c111097594d2d2911976df1a2f92a321ae71a0d5b9734c9f8e2c1bff76'
+ 'SKIP'
+ 'f6d95712a874edefc39a7746062c8037a62801a550560c5b2eab08b5b86987c1de5be60eba5fcb56d35a37db109aa32d07b7eff2bb99800c1c47d2227421a8f4'
+ 'SKIP'
+ '70117f77aa43bbbe0ed28da5ef23834c026780a74076a92ec775e30f851badb423e9a2cb9e8d142c94e4f6f8a794988c1b788fd4bd2271e562071adf0ab16403'
+ 'SKIP'
+ '69487be69612e9bf0221ff56ae687248bd13635db1b7087130e93c1670e38f3c810bbca17723555c04fe207976c35871bbc3da005179ce099504321cf33636e4'
+ 'SKIP'
+ 'ac7c47f9ddfe5d4d5db6ca9c1bcba788af95662bf0e54ca5426fe66cd8262896e12acc426eecdf0e0d6681c180bcd37f4c4469619273607e95399c7f49b61c7c'
+ 'SKIP')
+b2sums=('907c39bb368beea037dcb4b32c56b04a86580123d23ddfe5a1d30ed53143a9b6204044d74040e5bcfe80061673d59597ad2e033525561d6b195a95a104203fa9'
+ 'SKIP'
+ '17bc5e0a6270494a0296da7f1394d0b89666ca42ad04bcce097740da2b30cdc575f17e681a8320dc2a2161eeebb753f22f228a340fc7cd690fa883d29149bcd8'
+ 'c6f5ad65ca75f8467b624daf3caaee2f35d6e4714ce46ebe1bbf79447feecf8615915b00fa5e7bd1e97c6232864e06c53a792fbadf36a5399883529769273e24'
+ 'SKIP'
+ '053ec771b15082b153868d70182d61a59ac94553867f153304542ae7e083825c729882044a627016723cd3bbd831f6f3dfe12e12b079da42bc7587e934f04d55'
+ 'SKIP'
+ '9e8739015db63a013c05587e3d164d67c3f65f1f6c5fc75e4592bcd038c036cde88a7bc95fbc1f1b4ed876f6124ca4dabcd4f5dbb45d1b84299f2efe1a59431a'
+ 'SKIP'
+ 'e2ff99e8236487f43171c771d0ee89137b73f3d0b2756bcb0d6525c810ffa9f5a3763c3744327fb47cef21eabfc50fff96632f4bbe2cd244206a99daffa0c25a'
+ '6bfc4bca5dcadba8a0d4121a2b3ed0bfe440c261003521862c8e6381f1a6f0a72d3fc037351d30afd7ef321e8e8d2ec817c046ac749f2ca0c97fbdc2f7e840b7'
+ 'SKIP'
+ 'aded57324e129572c41646b3cc3b0b59a459452d9338d9245663b63dac2a463fb1f1b2b1d2d4ad3c09cb71fb8439df52cd94f24db99e782fc899b94a288a3043'
+ 'SKIP'
+ '22ab3acd84f4db8c3d6f59340c252faedfd4447cea00dafbd652e65b6cf8a20adf6835c22e58563004cfafdb15348c924996230b4b23cae42da5e25eeac4bdad'
+ 'SKIP'
+ 'cfea18b2347bf893d9bd461e57113d0a141040a1f7a42db6221ed9662f84023f45b058df3382cc06d82596f8eb98e0806f3abe1e79155fafd46da2a8b746bfbe'
+ 'SKIP'
+ 'eb3381ec7106cfe5dca333391f473e97b03df83f247d3067e9f933ed7206f826e59d2b74b8c28d41e785ffe1c2980b680470064eb2fa2ff1ee3d8fa8be5b81a8'
+ 'SKIP'
+ '24952e97c757b97c387ab4c2c4bf7b040f2874e9326c129805c7f5326fa14d80e083b0842e336a635531a2c8d4a66d428c816bae6b175f1c4518add1ffa3554d'
+ 'SKIP'
+ 'da55e695b148e949a1c0770d0298d7a8c9f87d7a1f9e45d380f8c13c472bd44cb4266adb9a113e2b1dcc2596291744f48fdf998ff2de876059d89d184dc87f3a'
+ 'SKIP'
+ '161ac11115a80c21233e4dbe52f92201fa3372e5750cff38b3f49d60f2440b560c4c9a55dfca8f6313750eb2b65a6b0a8427619c382085bcc24cdfe45f6d6233'
+ 'SKIP')
+
+export LDFLAGS="$LDFLAGS -static"
+export CC=musl-gcc
+export CXX=musl-gcc
+
+# https://www.openwall.com/lists/musl/2014/11/05/3
+# fstack-protector and musl do not get along but only on i686
+if [[ $CARCH = i686 || $CARCH = pentium4 || $CARCH = i486 ]]; then
+ # silly build systems have configure checks or buildtime programs that don't CFLAGS but do do CC
+ export CC="musl-gcc -fno-stack-protector"
+ export CXX="musl-gcc -fno-stack-protector"
+ export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
+ export CXXFLAGS="${CXXFLAGS/-fstack-protector-strong/}"
+fi
+
+# keep using xz-compressed packages, because one use of the package is to
+# recover on systems with broken zstd support in libarchive
+[[ $PKGEXT = .pkg.tar.zst ]] && PKGEXT=.pkg.tar.xz
+
+build() {
+ export PKG_CONFIG_PATH="${srcdir}"/temp/usr/lib/pkgconfig
+ export PATH="${srcdir}/temp/usr/bin:${PATH}"
+
+ # openssl
+ cd "${srcdir}"/openssl-${_sslver}
+ case ${CARCH} in
+ x86_64)
+ openssltarget='linux-x86_64'
+ optflags='enable-ec_nistp_64_gcc_128'
+ ;;
+ pentium4)
+ openssltarget='linux-elf'
+ optflags=''
+ ;;
+ i686)
+ openssltarget='linux-elf'
+ optflags='no-sse2'
+ ;;
+ i486)
+ openssltarget='linux-elf'
+ optflags='386'
+ ;;
+ arm|armv6h|armv7h)
+ openssltarget='linux-armv4'
+ optflags=''
+ ;;
+ aarch64)
+ openssltarget='linux-aarch64'
+ optflags='no-afalgeng'
+ ;;
+ esac
+ # mark stack as non-executable: http://bugs.archlinux.org/task/12434
+ ./Configure --prefix="${srcdir}"/temp/usr \
+ --openssldir=/etc/ssl \
+ --libdir=lib \
+ -static \
+ no-ssl3-method \
+ ${optflags} \
+ "${openssltarget}" \
+ "-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
+ make build_libs
+ make install_dev
+
+ # xz
+ cd "${srcdir}"/xz-${_xzver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared
+ cd src/liblzma
+ make
+ make install
+
+ # bzip2
+ cd "${srcdir}"/bzip2-${_bzipver}
+ sed -i "s|-O2|${CFLAGS}|g;s|CC=gcc|CC=${CC}|g" Makefile
+ make libbz2.a
+ install -Dvm644 bzlib.h "${srcdir}"/temp/usr/include/
+ install -Dvm644 libbz2.a "${srcdir}"/temp/usr/lib/
+
+ cd "${srcdir}"/zstd-${_zstdver}/lib
+ make libzstd.a
+ make PREFIX="${srcdir}"/temp/usr install-pc install-static install-includes
+
+ # zlib
+ cd "${srcdir}/"zlib-${_zlibver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --static
+ make libz.a
+ make install
+
+ # libarchive
+ cd "${srcdir}"/libarchive-${_libarchive_ver}
+ CPPFLAGS="-I${srcdir}/temp/usr/include" CFLAGS="-L${srcdir}/temp/usr/lib" \
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --without-xml2 \
+ --without-nettle \
+ --disable-{bsdtar,bsdcat,bsdcpio} \
+ --without-expat \
+ --disable-shared
+ make
+ make install-{includeHEADERS,libLTLIBRARIES,pkgconfigDATA,includeHEADERS}
+
+ # nghttp2
+ cd "${srcdir}"/nghttp2-${_nghttp2_ver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared \
+ --disable-examples \
+ --disable-python-bindings
+ make -C lib
+ make -C lib install
+
+ # c-ares
+ # needed for curl, which does not use it in the repos
+ # but seems to be needed for static builds
+ cd "${srcdir}"/c-ares-${_cares_ver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared
+ make -C src/lib
+ make install-pkgconfigDATA
+ make -C src/lib install
+ make -C include install
+
+ # curl
+ cd "${srcdir}"/curl-${_curlver}
+ # c-ares is not detected via pkg-config :(
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared \
+ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
+ --disable-{dict,gopher,imap,imaps,ldap,ldaps,manual,pop3,pop3s,rtsp,scp,sftp,smb,smbs,smtp,smtps,telnet,tftp} \
+ --without-{brotli,libidn2,librtmp,libssh2} \
+ --disable-libcurl-option \
+ --with-openssl \
+ --enable-ares="${srcdir}"/temp/usr
+ make -C lib
+ make install-pkgconfigDATA
+ make -C lib install
+ make -C include install
+
+ # libgpg-error
+ cd "${srcdir}"/libgpg-error-${_gpgerrorver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared
+ make -C src
+ make -C src install-{{,dist_}binSCRIPTS,libLTLIBRARIES,nodist_includeHEADERS,pkgconfigDATA}
+
+ # libassuan
+ cd "${srcdir}"/libassuan-${_libassuanver}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-shared
+ make -C src
+ make -C src install-{binSCRIPTS,libLTLIBRARIES,nodist_includeHEADERS,pkgconfigDATA}
+
+ # gpgme
+ cd "${srcdir}"/gpgme-${_gpgmever}
+ ./configure --prefix="${srcdir}"/temp/usr \
+ --disable-fd-passing \
+ --disable-shared \
+ --disable-languages
+ make -C src
+ make -C src install-{binSCRIPTS,libLTLIBRARIES,nodist_includeHEADERS,pkgconfigDATA}
+
+ # ew libtool
+ rm "${srcdir}"/temp/usr/lib/lib*.la
+
+ # Finally, it's a pacman!
+ mkdir -p "${srcdir}"/pacman-${pkgver}/builddir
+ cd "${srcdir}"/pacman-${pkgver}/builddir
+ meson setup \
+ --prefix=/usr \
+ --includedir=lib/pacman/include \
+ --libdir=lib/pacman/lib \
+ --buildtype=plain \
+ -Dbuildstatic=true \
+ -Ddefault_library=static \
+ -Ddoc=disabled \
+ -Dldconfig=/usr/bin/ldconfig \
+ -Dscriptlet-shell=/usr/bin/bash \
+ ..
+ ninja
+}
+
+package() {
+ cd "${srcdir}"/pacman-${pkgver}/builddir
+ DESTDIR="${pkgdir}" ninja install
+
+ rm -rf "${pkgdir}"/usr/share "${pkgdir}"/etc
+ for exe in "${pkgdir}"/usr/bin/*; do
+ if [[ -f ${exe} && $(head -c4 "${exe}") = $'\x7fELF' ]]; then
+ mv "${exe}" "${exe}"-static
+ else
+ rm "${exe}"
+ fi
+ done
+
+ cp -a "${srcdir}"/temp/usr/{bin,include,lib} "${pkgdir}"/usr/lib/pacman/
+ sed -i "s@${srcdir}/temp/usr@/usr/lib/pacman@g" \
+ "${pkgdir}"/usr/lib/pacman/lib/pkgconfig/*.pc \
+ "${pkgdir}"/usr/lib/pacman/bin/*
+}
diff --git a/build-support/pacman-static/build-packages.sh b/build-support/pacman-static/build-packages.sh
new file mode 100755
index 00000000..b1eb05a2
--- /dev/null
+++ b/build-support/pacman-static/build-packages.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# requires devtools, devtools32 (for extra-i686-build)
+# if debug variants of extra-* exist, use them (I have a custom script for this)
+
+rm -rf artifacts/
+
+for buildarch in x86_64 i686; do
+ extradir=artifacts/${buildarch}-extracted
+
+ if command -v debug-${buildarch}-build; then
+ debug-${buildarch}-build
+ else
+ extra-${buildarch}-build
+ fi
+
+ CARCH=${buildarch} makepkg --packagelist | while read -r pkgfile; do
+ if bsdtar -tf "${pkgfile}" usr/bin/pacman-static > /dev/null 2>&1; then
+ mkdir -p ${extradir}
+ bsdtar --strip-components 2 -C ${extradir} -xf "${pkgfile}" usr/bin/pacman-static
+ break
+ fi
+ done
+
+ xz -ke ${extradir}/pacman-static
+ gpg --detach-sign ${extradir}/pacman-static
+ gpg --detach-sign ${extradir}/pacman-static.xz
+done
diff --git a/build-support/pacman-static/ca-dir.patch b/build-support/pacman-static/ca-dir.patch
new file mode 100644
index 00000000..1daba849
--- /dev/null
+++ b/build-support/pacman-static/ca-dir.patch
@@ -0,0 +1,31 @@
+--- apps/CA.pl.in 2016-09-26 11:46:04.000000000 +0200
++++ apps/CA.pl.in 2016-11-01 16:02:16.709616823 +0100
+@@ -33,7 +33,7 @@
+ my $PKCS12 = "$openssl pkcs12";
+
+ # default openssl.cnf file has setup as per the following
+-my $CATOP = "./demoCA";
++my $CATOP = "/etc/ssl";
+ my $CAKEY = "cakey.pem";
+ my $CAREQ = "careq.pem";
+ my $CACERT = "cacert.pem";
+--- apps/openssl.cnf 2016-09-26 11:46:04.000000000 +0200
++++ apps/openssl.cnf 2016-11-01 16:02:48.378503427 +0100
+@@ -39,7 +39,7 @@
+ ####################################################################
+ [ CA_default ]
+
+-dir = ./demoCA # Where everything is kept
++dir = /etc/ssl # Where everything is kept
+ certs = $dir/certs # Where the issued certs are kept
+ crl_dir = $dir/crl # Where the issued crl are kept
+ database = $dir/index.txt # database index file.
+@@ -323,7 +323,7 @@
+ [ tsa_config1 ]
+
+ # These are used by the TSA reply generation only.
+-dir = ./demoCA # TSA root directory
++dir = /etc/ssl # TSA root directory
+ serial = $dir/tsaserial # The current serial number (mandatory)
+ crypto_device = builtin # OpenSSL engine to use for signing
+ signer_cert = $dir/tsacert.pem # The TSA signing certificate
diff --git a/build-support/pacman-static/nvchecker-deps.toml b/build-support/pacman-static/nvchecker-deps.toml
new file mode 100644
index 00000000..88f3d02c
--- /dev/null
+++ b/build-support/pacman-static/nvchecker-deps.toml
@@ -0,0 +1,51 @@
+[__config__]
+oldver = "nvchecker-old.txt"
+newver = "nvchecker-new.txt"
+
+[c-ares]
+source = "archpkg"
+archpkg = "c-ares"
+
+[nghttp2]
+source = "archpkg"
+archpkg = "libnghttp2"
+
+[curl]
+source = "archpkg"
+archpkg = "curl"
+
+[ssl]
+source = "archpkg"
+archpkg = "openssl"
+
+[zlib]
+source = "archpkg"
+archpkg = "zlib"
+
+[xz]
+source = "archpkg"
+archpkg = "xz"
+
+[bzip]
+source = "archpkg"
+archpkg = "bzip2"
+
+[zstd]
+source = "archpkg"
+archpkg = "zstd"
+
+[libarchive]
+source = "archpkg"
+archpkg = "libarchive"
+
+[gpgerror]
+source = "archpkg"
+archpkg = "libgpg-error"
+
+[libassuan]
+source = "archpkg"
+archpkg = "libassuan"
+
+[gpgme]
+source = "archpkg"
+archpkg = "gpgme"
diff --git a/build-support/pacman-static/nvchecker-new.txt b/build-support/pacman-static/nvchecker-new.txt
new file mode 100644
index 00000000..6758eaeb
--- /dev/null
+++ b/build-support/pacman-static/nvchecker-new.txt
@@ -0,0 +1,14 @@
+{
+ "bzip": "1.0.8-4",
+ "c-ares": "1.17.1-1",
+ "curl": "7.77.0-1",
+ "gpgerror": "1.42-1",
+ "gpgme": "1.15.1-1",
+ "libarchive": "3.5.1-1",
+ "libassuan": "2.5.5-1",
+ "nghttp2": "1.43.0-1",
+ "ssl": "1.1.1.k-1",
+ "xz": "5.2.5-1",
+ "zlib": "1.2.11-4",
+ "zstd": "1.5.0-1"
+}
diff --git a/build-support/pacman-static/nvchecker-old.txt b/build-support/pacman-static/nvchecker-old.txt
new file mode 100644
index 00000000..72cf2c0f
--- /dev/null
+++ b/build-support/pacman-static/nvchecker-old.txt
@@ -0,0 +1,14 @@
+{
+ "bzip": "1.0.8-4",
+ "c-ares": "1.17.1-1",
+ "curl": "7.77.0-1",
+ "gpgerror": "1.42-1",
+ "gpgme": "1.15.1-1",
+ "libarchive": "3.5.1-1",
+ "libassuan": "2.5.5-1",
+ "nghttp2": "1.43.0-1",
+ "ssl": "1.1.1.k-1",
+ "xz": "5.2.5-1",
+ "zlib": "1.2.11-4",
+ "zstd": "1.4.9-1"
+}
diff --git a/build-support/python-setuptools-bootstrap/PKGBUILD b/build-support/python-setuptools-bootstrap/PKGBUILD
index 3ff26e3a..8b46c9e3 100644
--- a/build-support/python-setuptools-bootstrap/PKGBUILD
+++ b/build-support/python-setuptools-bootstrap/PKGBUILD
@@ -8,15 +8,16 @@
# heavily borrowed from python-setuptools' PKGBUILD
pkgname=python-setuptools-bootstrap
+_pkgname="${pkgname%-*}"
pkgver='56.2.0'
-pkgrel='1'
+pkgrel='2'
epoch='1'
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages - bootstrap variant"
arch=('any')
license=('PSF')
url="https://pypi.org/project/setuptools/"
makedepends=('python' 'git')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz")
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz")
sha512sums=('ff062db8adf4478bb55650e0c5ef162aed1e4de2b6dba8c0b6ea986b669ef2c8af126247f281feb749cd8a54c0bd9af54e99289073ab742b0d4e26a0208b963c')
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
@@ -55,5 +56,7 @@ package() {
replaces=('python-distribute')
cd "$srcdir"/setuptools-$pkgver
+ # create directory before installing (otherwise installing fails)
+ mkdir build/scripts-3.10
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
}