A sr.ht/drawterm/APKBUILD => sr.ht/drawterm/APKBUILD +28 -0
@@ 0,0 1,28 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=drawterm-sourcehut
+pkgver=0_hg20200508
+_hgver=04a5702cdae8
+pkgrel=0
+pkgdesc="Connect to Plan 9 CPU servers from other operating systems"
+url="http://drawterm.9front.org/"
+arch="all !armhf !armv7 !s390x !mips !mips64"
+license="LPL-1.02"
+options="!check" # upstream does not have a test suite
+makedepends="linux-headers libx11-dev libxt-dev"
+subpackages="$pkgname-dbg"
+source="https://hg.sr.ht/~sircmpwn/drawterm/archive/$_hgver.tar.gz"
+builddir="$srcdir/drawterm-$_hgver"
+
+build() {
+ CONF=unix make
+}
+
+package() {
+ install -Dm755 drawterm \
+ "$pkgdir"/usr/bin/drawterm
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="fb10071bf9028e51a401cceaf90d5df2710a549a267f46683fac919b9101733b03a0af700b78512c4d3bfa73a2ac875dbb72dd933acb2a1315d5fd0dcfc0f9aa 04a5702cdae8.tar.gz"
A sr.ht/drawterm/respect-env.patch => sr.ht/drawterm/respect-env.patch +22 -0
@@ 0,0 1,22 @@
+diff -upr drawterm-20170119.orig/Make.unix drawterm-20170119/Make.unix
+--- drawterm-20170119.orig/Make.unix 2017-01-23 22:41:27.402630694 +0100
++++ drawterm-20170119/Make.unix 2017-01-23 22:41:43.879309573 +0100
+@@ -5,12 +5,15 @@ AR=ar
+ AS=as
+ RANLIB=ranlib
+ X11=/usr/X11R6
+-CC=gcc
+-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
++X11INC=$(X11)/include
++X11LIB=$(X11)/lib
++CC?=gcc
++CFLAGS?=-O2
++CFLAGS+=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11INC) -D_THREAD_SAFE $(PTHREAD)
+ O=o
+ OS=posix
+ GUI=x11
+-LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
++LDADD=-L$(X11LIB) -lX11 -ggdb
+ LDFLAGS=$(PTHREAD)
+ TARG=drawterm
+ # AUDIO=none