From 3a0b44fdc0a0992d4bb3edbab17c2fb3f83d4f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Sat, 17 May 2025 14:50:36 +0300 Subject: [PATCH] nodejs 24.0.2-1 --- nodejs/alr.sh | 119 ++++++++++++++++++++++++++++++++++++++++++++++ portproton/alr.sh | 49 ------------------- 2 files changed, 119 insertions(+), 49 deletions(-) create mode 100644 nodejs/alr.sh delete mode 100755 portproton/alr.sh diff --git a/nodejs/alr.sh b/nodejs/alr.sh new file mode 100644 index 0000000..4b2e52f --- /dev/null +++ b/nodejs/alr.sh @@ -0,0 +1,119 @@ +name='nodejs' +version='24.0.2' +release='1' +desc='Evented I/O for V8 javascript ("Current" release).' +desk_ru='Событийно-ориентированный I/O для V8 javascript ("Текущая" версия).' +homepage='https://nodejs.org/' +maintainer='Evgeny Khramov ' +maintainer_ru='Евгений Храмов ' +architectures=('amd64') +license=('MIT') +provides=('nodejs') +conflicts=('nodejs') + +deps=( + 'brotli' + 'c-ares' + 'icu' + 'libnghttp2' + 'libnghttp3' + 'libngtcp2' + 'libuv' + 'openssl' + 'simdjson' + 'zlib' +) +deps_arch=( + 'brotli' + 'c-ares' + 'icu-devel' + 'libnghttp2' + 'libnghttp3' + 'libngtcp2' + 'libuv' + 'openssl' + 'simdjson' + 'zlib' +) + +build_deps=( + 'git' + 'procps-ng' + 'python3' + 'python3-devel' + 'libuv-devel' + 'brotli-devel' + 'c-ares-devel' + 'icu' + 'libnghttp2-devel' + 'simdjson' + 'libnghttp3' + 'libngtcp2' +) +build_deps_arch=( + 'git' + 'procps-ng' + 'python' + +) + +opt_deps=('npm: nodejs менеджер пакетов') + +options=('!lto') +sources=("https://github.com/nodejs/node/archive/refs/tags/v$version.tar.gz") +checksums=('SKIP') + +scripts=( + ['postinstall']='postinstall.sh' +) + +_set_flags() { + # /usr/lib/libnode.so uses malloc_usable_size, which is incompatible with fortification level 3 + CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" +} + +build() { + _set_flags + cd node-$version + + ./configure \ + --prefix=/usr \ + --without-npm \ + --with-intl=system-icu \ + --shared-brotli \ + --shared-cares \ + --shared-libuv \ + --shared-nghttp2 \ + --shared-nghttp3 \ + --shared-ngtcp2 \ + --shared-openssl \ + --shared-simdjson \ + --shared-zlib + + make -j$(($(nproc) - 1)) +} + +check() { + _set_flags + cd node-$version + # ignore failing tests, they work when compiled locally + rm test/parallel/test-http2-client-set-priority.js + rm test/parallel/test-http2-priority-event.js + rm test/parallel/test-http-outgoing-end-cork.js + make test-only -j$(($(nproc) - 1)) +} + +package() { + _set_flags + cd node-$version + make DESTDIR="$pkgdir" install + install-license LICENSE ./nodejs/LICENSE +} + +#files() { +# echo ./usr/bin/gpu-screen-recorder +# echo ./usr/bin/gsr-kms-server +# echo ./usr/lib/modprobe.d/gsr-nvidia.conf +# echo ./usr/lib/systemd/user/gpu-screen-recorder.service +#} \ No newline at end of file diff --git a/portproton/alr.sh b/portproton/alr.sh deleted file mode 100755 index d132136..0000000 --- a/portproton/alr.sh +++ /dev/null @@ -1,49 +0,0 @@ -name='portproton' -version='1.7.1' -release='1' -desc='PortProton is a project designed to make it easy and convenient to run Windows games on Linux for both beginners and advanced users.' -homepage='https://linux-gaming.ru/' -maintainer="Евгений Храмов " -architectures=('amd64') -licenses='MIT' -provides=('portproton') -conflicts=('portproton') - -deps_arch=('bash' 'icoutils' 'yad' 'bubblewrap' 'zstd' 'cabextract' 'gzip' 'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus' 'freetype2' 'xdg-utils' 'gdk-pixbuf2' 'ttf-font' 'nss' 'xorg-xrandr' 'mesa-utils' 'vulkan-driver' 'vulkan-icd-loader' 'lib32-libgl' 'lib32-gcc-libs' 'vulkan-tools' 'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins' 'lib32-libgpg-error' 'lib32-gnutls' 'lib32-freetype2' 'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader' 'lib32-openssl' 'lib32-mesa-utils' 'python-pillow' 'lib32-pipewire' 'jq') -deps_debian=('apt (>= 1.6)' 'apt-transport-https' 'ca-certificates' 'coreutils (>= 8.23-1)' 'curl' 'file' 'libc6 (>= 2.15)' 'libnss3 (>= 2:3.26)' 'policykit-1' 'xz-utils' 'bubblewrap' 'icoutils' 'tar' 'vulkan-tools' 'libvulkan1' 'zstd' 'cabextract' 'xdg-utils' 'openssl' 'bc' 'libgl1' 'wmctrl' 'pciutils' 'desktop-file-utils' 'fontconfig' 'imagemagick' 'yad' 'jq') -deps_fedora=('yad' 'curl' 'icoutils' 'libcurl' 'bubblewrap' 'zstd' 'cabextract' 'tar' 'goverlay' 'openssl' 'vulkan-loader(x86-32)' 'vulkan-loader' 'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)' 'mesa-libGL' 'mesa-dri-drivers' 'mesa-dri-drivers(x86-32)' 'ImageMagick' 'jq') -deps_redos=('bash' 'icoutils' 'yad' 'bubblewrap' 'zstd' 'cabextract' 'gzip' 'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus-broker' 'freetype' 'xdg-utils' 'gdk-pixbuf2' 'gnu-free-mono-fonts' 'gnu-free-sans-fonts' 'gnu-free-serif-fonts' 'nss-tools' 'libXrandr' 'mesa-demos' 'mesa-vulkan-drivers' 'vulkan-loader' 'vulkan-tools' 'libglvnd(x86-32)' 'libgcc(x86-32)' 'ImageMagick' 'libX11(x86-32)' 'libXScrnSaver(x86-32)' 'alsa-lib(x86-32)' 'libgpg-error(x86-32)' 'python3-pillow' 'jq') - -opt_deps_arch=('gamemode: Support for Feral GameMode' - 'lib32-gamemode: 32-bit support for Feral GameMode' - 'gamescope: Support for Gamescope' - 'icoextract: For proper icon creation in GNOME') -opt_deps_fedora=('gamemode: Support for Feral GameMode' - 'gamescope: Support for Gamescope' - 'icoextract: For proper icon creation in GNOME') -opt_deps_debian=('gamemode: Support for Feral GameMode' - 'gamescope: Support for Gamescope' - 'python3-icoextract: For proper icon creation in GNOME') -opt_deps_redos=('gamemode: Support for Feral GameMode' - 'gamescope: Support for Gamescope') - -sources=( - "git+https://github.com/Castro-Fidel/PortProton_ALT.git#tag=v${version}" -) - -checksums=( - 'SKIP' -) - -scripts=( - ['preinstall']='preinstall.sh' -) - -package() { - cd PortProton_ALT - install -Dm755 "portproton" "${pkgdir}/usr/bin/${name}" - install -Dm644 "ru.linux_gaming.PortProton.desktop" "${pkgdir}/usr/share/applications/${name}.desktop" - install -Dm644 "ru.linux_gaming.PortProton.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ru.linux_gaming.PortProton.svg" - install -Dm644 "ru.linux_gaming.PortProton.metainfo.xml" -t "${pkgdir}/usr/share/metainfo/" - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${name}/LICENSE" -}