From 3ee93968e10126adc7dad5c8872f0170c3421e13 Mon Sep 17 00:00:00 2001 From: zorz Date: Tue, 5 May 2026 18:29:35 +0300 Subject: various obsolette --- gn/.footprint | 3 +++ gn/.signature | 6 ++++++ gn/MAKEPKG | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 gn/.footprint create mode 100644 gn/.signature create mode 100644 gn/MAKEPKG (limited to 'gn') diff --git a/gn/.footprint b/gn/.footprint new file mode 100644 index 0000000..8d7cc4a --- /dev/null +++ b/gn/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/gn diff --git a/gn/.signature b/gn/.signature new file mode 100644 index 0000000..ae8876f --- /dev/null +++ b/gn/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with zorz.pub +RWTZ9IduCSQ/mBAXLxvU8drWXAJBxtnAISgYxBpjh1Onk5lukbsDsT9RckSAQMC8WhCQdbYuDq8zXSI4pfjWQlUulLbz8UZlSgs= + +SHA256 (MAKEPKG) = 617ae088149a3cec4af682aea86b2239410ac310a3c8e792f44f77d7f5cbfe8a +SHA256 (.footprint) = ebe24248910a2c4d544406fe7277892ed941f4a93079fb8d0c5fb7b2036bba9e +SHA256 (304bbef6c7e9a86630c12986b99c8654eb7fe648.tar.gz) = 63785159210399064a164aaabf2adcaf4289e068c68976cd7bffa3aa9fd14e6b diff --git a/gn/MAKEPKG b/gn/MAKEPKG new file mode 100644 index 0000000..ce82d41 --- /dev/null +++ b/gn/MAKEPKG @@ -0,0 +1,56 @@ +#!/bin/mkpkg +# description: GN meta-build system +# url: https://gn.googlesource.com/gn +# Depends on: python3 ninja clang +name=gn +version=0.2324 +_commit=304bbef6c7e9a86630c12986b99c8654eb7fe648 +release=1 +source=(https://gn.googlesource.com/gn/+archive/${_commit}.tar.gz) +sha256sums=( + "63785159210399064a164aaabf2adcaf4289e068c68976cd7bffa3aa9fd14e6b" +) + +build() { + cd "$SRC" + export CC=clang + export CXX=clang++ + export AR=llvm-ar + export LDFLAGS="-fuse-ld=lld" + + # Gentoo gn-gen-r8: comment out hardcoded -O3/-g, remove -pipe + sed -i "/cflags.append('-O3')/s/^/#/; + /cflags.append('-g')/s/^/#/; + /ldflags.append('-O3')/s/^/#/; + /options.no_strip/s/^/#/; + /'-pipe',/d; + /'-Wno-format',/d; + /'-Wno-strict-aliasing',/d" build/gen.py + + # Fix ninja regen loop: the +archive tarball gives all files + # identical timestamps. Set them all to the past so gen.py + # outputs (build.ninja) will be strictly newer. + find . -type f -exec touch -t 200001010000 {} + + + python3 build/gen.py \ + --no-last-commit-position \ + --no-static-libstdc++ \ + --no-strip \ + --allow-warnings + printf '%s\n' \ + '#ifndef OUT_LAST_COMMIT_POSITION_H_' \ + '#define OUT_LAST_COMMIT_POSITION_H_' \ + '#define LAST_COMMIT_POSITION_NUM 2324' \ + "#define LAST_COMMIT_POSITION \"2324 (${_commit})\"" \ + '#endif' \ + > out/last_commit_position.h + + ninja -C out gn + install -Dm755 out/gn "$PKG/usr/bin/gn" +} +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh -- cgit v1.2.3