blob: ac11103638220ceb6664db35576c1a9b30be716e (
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
55
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"
|