From df20fe2ca40143be462f7dab45936102b0fe6cc0 Mon Sep 17 00:00:00 2001 From: zorz Date: Fri, 15 May 2026 18:49:53 +0300 Subject: mold linker --- README.md | 5 +++++ mold/.footprint | 15 +++++++++++++++ mold/.signature | 6 ++++++ mold/MAKEPKG | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 README.md create mode 100644 mold/.footprint create mode 100644 mold/.signature create mode 100644 mold/MAKEPKG diff --git a/README.md b/README.md new file mode 100644 index 0000000..2bd13b8 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# krypt/sh Community Ports + +Community-contributed ports for the krypt/sh distribution. + + diff --git a/mold/.footprint b/mold/.footprint new file mode 100644 index 0000000..2f2999b --- /dev/null +++ b/mold/.footprint @@ -0,0 +1,15 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/mold +lrwxrwxrwx root/root usr/bin/ld.mold -> mold +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/mold/ +-rwxr-xr-x root/root usr/lib/mold/mold-wrapper.so +drwxr-xr-x root/root usr/libexec/ +drwxr-xr-x root/root usr/libexec/mold/ +lrwxrwxrwx root/root usr/libexec/mold/ld -> ../../bin/mold +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/mold.1.gz +lrwxrwxrwx root/root usr/share/man/man1/ld.mold.1.gz -> mold.1.gz diff --git a/mold/.signature b/mold/.signature new file mode 100644 index 0000000..8620107 --- /dev/null +++ b/mold/.signature @@ -0,0 +1,6 @@ +RWTZ9IduCSQ/mLiCx4atKGik9TvSE6umWZ69KUN7LuGAl9az04LY4FCnOJ/8ztBCxy0hZ17VaIK80CGhmr3SRLuPD99h/7w4QQY= + +SHA256 (MAKEPKG) = 1507adab1339cb17e596f1821d2e9161d4a30856f1e45ab1c4b36f66999ae941 +SHA256 (.footprint) = d341ec17481e00a96101e727d94383c1a653edc4e7c541926e986e89aeb530ac +SHA256 (mold-2.41.0.tar.gz) = 0a61abac85d818437b425df856822e9d6e9982baeae5a93bcb02fe6c0060c61a +SHA256 (mold#2.41.0-1.pkg.tar.gz) = 9e4f1a7ae815d21ce9fe505f784456254d0a3d4687f0d1904df1861da6cbb4ea diff --git a/mold/MAKEPKG b/mold/MAKEPKG new file mode 100644 index 0000000..4046d91 --- /dev/null +++ b/mold/MAKEPKG @@ -0,0 +1,41 @@ +#!/bin/mkpkg +# description: A modern parallel linker +# url: https://github.com/rui314/mold + +name=mold +version=2.41.0 +release=1 +depends=(zlib zstd libressl) +makedeps=(cmake ninja python3) +source=(https://github.com/rui314/mold/archive/refs/tags/v$version.tar.gz) +renames=(${name}-${version}.tar.gz) +sha256sums=( + "0a61abac85d818437b425df856822e9d6e9982baeae5a93bcb02fe6c0060c61a" +) + +build() { + cd $name-$version + + cmake -B build -G Ninja -Wno-dev \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + -DMOLD_TARGETS="X86_64" \ + -DMOLD_USE_MIMALLOC=OFF \ + -DMOLD_USE_SYSTEM_TBB=OFF \ + -DMOLD_LTO=OFF + + ninja -C build + DESTDIR=$PKG ninja -C build install + + rm -rf $PKG/usr/share/doc +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh -- cgit v1.2.3