commit dded61d
hovercats
·
2026-07-17 09:55:30 +0000 UTC
parent 2e8918d
senpai: readd
5 files changed,
+38,
-0
+34,
-0
1@@ -0,0 +1,34 @@
2+#!/bin/sh -e
3+
4+export GOROOT=/usr/lib/go
5+export GOPROXY=https://proxy.golang.org
6+#export CGO_ENABLED=0
7+#export GOFLAGS="-ldflags=-static-pie -ldflags=-s -ldflags=-w"
8+#export GO_LDFLAGS="-buildmode=static-pie -s -w"
9+#export CGO_CFLAGS="-O2 -pipe -static -static-pie -w -Wno-error"
10+
11+#go build -a \
12+go build -a -ldflags="-w -s -extldflags '-static'" \
13+ -trimpath \
14+ -modcacherw \
15+ -buildvcs=false \
16+ ./cmd/senpai
17+
18+if command -v scdoc; then
19+ scdoc < doc/senpai.1.scd > senpai.1
20+ scdoc < doc/senpai.5.scd > senpai.5
21+
22+ mkdir -p \
23+ "$1/usr/share/man/man1" \
24+ "$1/usr/share/man/man5"
25+
26+ cp senpai.1 "$1/usr/share/man/man1/"
27+ cp senpai.5 "$1/usr/share/man/man5/"
28+
29+ # Compress manpages
30+ find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
31+fi
32+
33+mkdir -p "$1/usr/bin"
34+
35+cp senpai "$1/usr/bin/"
+1,
-0
1@@ -0,0 +1 @@
2+c8f55c819326a4c9e93303304c45b5452193dc59eb79de8b639a8df59abf040323
+1,
-0
1@@ -0,0 +1 @@
2+go make
+1,
-0
1@@ -0,0 +1 @@
2+https://git.sr.ht/~delthas/senpai/archive/v0.5.0.tar.gz
+1,
-0
1@@ -0,0 +1 @@
2+0.5.0 1