commit 7c13bae
chld
·
2026-08-28 22:02:02 +0000 UTC
parent 2f28089
discordo: init
4 files changed,
+30,
-0
+1,
-0
1@@ -0,0 +1 @@
2+64d00b40f39738bf2429109ac9b3725f1d013da5
+2,
-0
1@@ -0,0 +1,2 @@
2+.scdoc
3+.go-bin
+6,
-0
1@@ -0,0 +1,6 @@
2+name: discordo
3+description: a TUI discord client written in Go
4+license: GPL-3.0
5+upstream: https://github.com/ayn2op/discordo
6+version: git
7+maintainer:
+21,
-0
1@@ -0,0 +1,21 @@
2+#!/bin/sh -ue
3+NAME=discordo
4+VERSION=git
5+RELEASE=1
6+SOURCE="https://github.com/ayn2op/discordo"
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 ./discordo $DESTDIR/$PREFIX/bin/discordo
20+}
21+
22+. ${0%/*}/../../libsh/libdmake.sh