aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drawterm/APKBUILD
blob: 8c4bb49b31e27f54f2ca6063bfe379468092e3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=drawterm
pkgver=20170119
pkgrel=0
pkgdesc="Connect to Plan 9 CPU servers from other operating systems"
url="http://drawterm.9front.org/"
arch="all !armhf !aarch64"
license="custom"
depends=""
makedepends="linux-headers libx11-dev libxt-dev"
install=""
subpackages="$pkgname-dbg"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
	respect-cflags.patch"

_srcurl="https://code.9front.org/hg/$pkgname"
_srcrev="169f32a871c9"

builddir="$srcdir"/$pkgname-$pkgver
snapshot() {
	mkdir -p "$srcdir" && cd "$srcdir"

	hg clone "$_srcurl" $pkgname-$pkgver \
		-r "$_srcrev" || return 1
	hg --cwd "$pkgname-$pkgver" archive \
		-t tgz \
		-X ".hg*" \
		-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 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE \
		|| return 1
}

md5sums="98d9c8d514802b58cbbac50c52185371  drawterm-20170119.tar.gz
e92b5f3aee4482dad62f1669705c42f9  respect-cflags.patch"
sha256sums="aa7e170b39ae014d2687ad4dc99941695b02e4515054b6dfccc01a5261e4db7c  drawterm-20170119.tar.gz
dfbe4ef43aefaab8c966b6fd05f7cf304415a0ec9353a43b562eb76c8c8ab6a0  respect-cflags.patch"
sha512sums="fec2895bd01940cd91ed6c4b73fd13ec6a55c5a5b2241f48430a73af44e6e4c649819a2ee9feee1880d4bf27ab007a229c6b5170039b73f1f19f8b0e6d04c510  drawterm-20170119.tar.gz
bd61f4b3c3de2b86bf35afaf95daed1beac3329e6e0f56e476fcd5607c39b83fc5700b6939c2a095e495be7c7708101e83f70074d3afdef1a58396270c23934f  respect-cflags.patch"