aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drawterm/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/drawterm/APKBUILD')
-rw-r--r--testing/drawterm/APKBUILD56
1 files changed, 56 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"