diff options
| author | zorz <zorz@krypt.sh> | 2026-05-05 18:29:35 +0300 |
|---|---|---|
| committer | zorz <zorz@krypt.sh> | 2026-05-05 18:29:35 +0300 |
| commit | 3ee93968e10126adc7dad5c8872f0170c3421e13 (patch) | |
| tree | bcac8daa62b6c9a94a48dae87f5d3f6de1985bba /gn | |
| parent | 936433a5deb6ccc8f8476096f2c2b8dc72c33388 (diff) | |
| download | zorz-3ee93968e10126adc7dad5c8872f0170c3421e13.tar.gz zorz-3ee93968e10126adc7dad5c8872f0170c3421e13.tar.xz | |
various obsolette
Diffstat (limited to 'gn')
| -rw-r--r-- | gn/.footprint | 3 | ||||
| -rw-r--r-- | gn/.signature | 6 | ||||
| -rw-r--r-- | gn/MAKEPKG | 56 |
3 files changed, 65 insertions, 0 deletions
diff --git a/gn/.footprint b/gn/.footprint new file mode 100644 index 0000000..8d7cc4a --- /dev/null +++ b/gn/.footprint | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | drwxr-xr-x root/root usr/ | ||
| 2 | drwxr-xr-x root/root usr/bin/ | ||
| 3 | -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 @@ | |||
| 1 | untrusted comment: verify with zorz.pub | ||
| 2 | RWTZ9IduCSQ/mBAXLxvU8drWXAJBxtnAISgYxBpjh1Onk5lukbsDsT9RckSAQMC8WhCQdbYuDq8zXSI4pfjWQlUulLbz8UZlSgs= | ||
| 3 | |||
| 4 | SHA256 (MAKEPKG) = 617ae088149a3cec4af682aea86b2239410ac310a3c8e792f44f77d7f5cbfe8a | ||
| 5 | SHA256 (.footprint) = ebe24248910a2c4d544406fe7277892ed941f4a93079fb8d0c5fb7b2036bba9e | ||
| 6 | 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 @@ | |||
| 1 | #!/bin/mkpkg | ||
| 2 | # description: GN meta-build system | ||
| 3 | # url: https://gn.googlesource.com/gn | ||
| 4 | # Depends on: python3 ninja clang | ||
| 5 | name=gn | ||
| 6 | version=0.2324 | ||
| 7 | _commit=304bbef6c7e9a86630c12986b99c8654eb7fe648 | ||
| 8 | release=1 | ||
| 9 | source=(https://gn.googlesource.com/gn/+archive/${_commit}.tar.gz) | ||
| 10 | sha256sums=( | ||
| 11 | "63785159210399064a164aaabf2adcaf4289e068c68976cd7bffa3aa9fd14e6b" | ||
| 12 | ) | ||
| 13 | |||
| 14 | build() { | ||
| 15 | cd "$SRC" | ||
| 16 | export CC=clang | ||
| 17 | export CXX=clang++ | ||
| 18 | export AR=llvm-ar | ||
| 19 | export LDFLAGS="-fuse-ld=lld" | ||
| 20 | |||
| 21 | # Gentoo gn-gen-r8: comment out hardcoded -O3/-g, remove -pipe | ||
| 22 | sed -i "/cflags.append('-O3')/s/^/#/; | ||
| 23 | /cflags.append('-g')/s/^/#/; | ||
| 24 | /ldflags.append('-O3')/s/^/#/; | ||
| 25 | /options.no_strip/s/^/#/; | ||
| 26 | /'-pipe',/d; | ||
| 27 | /'-Wno-format',/d; | ||
| 28 | /'-Wno-strict-aliasing',/d" build/gen.py | ||
| 29 | |||
| 30 | # Fix ninja regen loop: the +archive tarball gives all files | ||
| 31 | # identical timestamps. Set them all to the past so gen.py | ||
| 32 | # outputs (build.ninja) will be strictly newer. | ||
| 33 | find . -type f -exec touch -t 200001010000 {} + | ||
| 34 | |||
| 35 | python3 build/gen.py \ | ||
| 36 | --no-last-commit-position \ | ||
| 37 | --no-static-libstdc++ \ | ||
| 38 | --no-strip \ | ||
| 39 | --allow-warnings | ||
| 40 | printf '%s\n' \ | ||
| 41 | '#ifndef OUT_LAST_COMMIT_POSITION_H_' \ | ||
| 42 | '#define OUT_LAST_COMMIT_POSITION_H_' \ | ||
| 43 | '#define LAST_COMMIT_POSITION_NUM 2324' \ | ||
| 44 | "#define LAST_COMMIT_POSITION \"2324 (${_commit})\"" \ | ||
| 45 | '#endif' \ | ||
| 46 | > out/last_commit_position.h | ||
| 47 | |||
| 48 | ninja -C out gn | ||
| 49 | install -Dm755 out/gn "$PKG/usr/bin/gn" | ||
| 50 | } | ||
| 51 | signify() { | ||
| 52 | untrusted comment: public key | ||
| 53 | RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 | ||
| 54 | } | ||
| 55 | |||
| 56 | # vim: filetype=sh | ||