aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-10-16 23:24:54 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-19 16:49:49 +0000
commit21eca20887e7f2b1852165eaa1d689e90fb5be45 (patch)
tree261b4da2b2e26df77da582d7bab0745aeaa15663 /testing
parente194322ee3c4a513e40fed20b8b583551096832c (diff)
downloadaports-21eca20887e7f2b1852165eaa1d689e90fb5be45.tar.bz2
aports-21eca20887e7f2b1852165eaa1d689e90fb5be45.tar.xz
testing/drawterm: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/drawterm/APKBUILD56
-rw-r--r--testing/drawterm/respect-cflags.patch13
2 files changed, 69 insertions, 0 deletions
diff --git a/testing/drawterm/APKBUILD b/testing/drawterm/APKBUILD
new file mode 100644
index 0000000000..ac11103638
--- /dev/null
+++ b/testing/drawterm/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=drawterm
+pkgver=20161016
+pkgrel=0
+pkgdesc="Connect to Plan 9 CPU servers from other operating systems"
+url="http://drawterm.9front.org/"
+arch="all"
+license="Lucent Public License"
+depends=""
+makedepends="linux-headers libx11-dev libxt-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-dbg"
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+ respect-cflags.patch"
+
+_srcurl="https://code.9front.org/hg/$pkgname"
+_srcrev="4ffe3cdb446d"
+
+builddir="$srcdir"/$pkgname-$pkgver
+snapshot() {
+ mkdir -p "$srcdir" && cd "$srcdir"
+
+ hg clone "$_srcurl" $pkgname-$pkgver || return 1
+ hg --cwd "$pkgname-$pkgver" archive \
+ -t tgz \
+ -X ".hg*" \
+ -r $_srcrev \
+ -p $pkgname-$pkgver/ \
+ "$srcdir"/$pkgname-$pkgver.tar.gz || return 1
+
+ scp "$srcdir"/$pkgname-$pkgver.tar.gz \
+ dev.alpinelinux.org:/archive/$pkgname/ || return 1
+}
+
+build() {
+ CONF=unix make -C "$builddir" || return 1
+}
+
+package() {
+ cd "$builddir"
+ install -Dm755 $pkgname \
+ "$pkgdir"/usr/bin/$pkgname || return 1
+ install -Dm644 README \
+ "$pkgdir"/usr/share/doc/$pkgname/README || return 1
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE \
+ || return 1
+}
+
+md5sums="b7e45de20397e9abace9c68e27390ee8 drawterm-20161016.tar.gz
+e92b5f3aee4482dad62f1669705c42f9 respect-cflags.patch"
+sha256sums="2c50de9ed3803a4cc16a8514c0f0415737fbc329a446073aaf654a4bdf950b33 drawterm-20161016.tar.gz
+dfbe4ef43aefaab8c966b6fd05f7cf304415a0ec9353a43b562eb76c8c8ab6a0 respect-cflags.patch"
+sha512sums="82fdadf364d80471bfaa27db27240ce50f4b3dd2b63042e384d25b174768a811c3ef55d048677e57066d13415a58cfdb55bf97152c19457a37edfe39aed9c53a drawterm-20161016.tar.gz
+bd61f4b3c3de2b86bf35afaf95daed1beac3329e6e0f56e476fcd5607c39b83fc5700b6939c2a095e495be7c7708101e83f70074d3afdef1a58396270c23934f respect-cflags.patch"
diff --git a/testing/drawterm/respect-cflags.patch b/testing/drawterm/respect-cflags.patch
new file mode 100644
index 0000000000..dabf21332d
--- /dev/null
+++ b/testing/drawterm/respect-cflags.patch
@@ -0,0 +1,13 @@
+diff -upr drawterm-20161016.orig/Make.unix drawterm-20161016/Make.unix
+--- drawterm-20161016.orig/Make.unix 2016-10-16 23:17:32.141093131 +0200
++++ drawterm-20161016/Make.unix 2016-10-16 23:17:55.724316992 +0200
+@@ -6,7 +6,8 @@ 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
++CFLAGS?=-O2
++CFLAGS+=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD)
+ O=o
+ OS=posix
+ GUI=x11