commit 3a62dfe

chld  ·  2026-09-01 12:53:42 +0000 UTC
parent 89d136c
reddit-tui: init
3 files changed,  +29, -0
+2, -0
1@@ -0,0 +1,2 @@
2+.scdoc
3+.go-bin
+6, -0
1@@ -0,0 +1,6 @@
2+name: reddit-tui
3+description: if you dont want to use the shitty new reddit site
4+license: 
5+upstream: https://github.com/tonymajestro/reddit-tui
6+version: git
7+maintainer: 
+21, -0
 1@@ -0,0 +1,21 @@
 2+#!/bin/sh -ue
 3+NAME=reddit-tui
 4+VERSION=git
 5+RELEASE=1
 6+SOURCE="https://github.com/tonymajestro/${NAME}"
 7+
 8+prebuild(){
 9+    mkdir -p $DESTDIR/$PREFIX/bin/
10+}
11+
12+build(){
13+    export CGO_ENABLED=0
14+    export GOFLAGS="-ldflags=-static-pie -ldflags=-s -ldflags=-w"
15+    export GO_LDFLAGS="-buildmode=static-pie -s -w"
16+    export CGO_CFLAGS="-O2 -pipe -static -static-pie -w -Wno-error"
17+
18+    go build -tags=nodbus
19+    cp ./reddit-tui $DESTDIR/$PREFIX/bin/
20+}
21+
22+. ${0%/*}/../../libsh/libdmake.sh