aboutsummaryrefslogtreecommitdiffstats
path: root/main/mosh/APKBUILD
blob: 2f97393227bb87110f0eacf6db24d5b3ed4094cd (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
57
58
59
60
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mosh
pkgver=1.2.6
pkgrel=1
pkgdesc="Mobile shell surviving disconnects with local echo and line editing"
url="http://mosh.mit.edu"
arch="all"
license="GPL3+"
depends="$pkgname-client $pkgname-server"
makedepends="ncurses-dev zlib-dev libressl-dev perl-dev perl-io-tty protobuf-dev
	automake autoconf libtool"
subpackages="$pkgname-doc $pkgname-client $pkgname-server"
source="http://$pkgname.mit.edu/$pkgname-$pkgver.tar.gz
	disable-utf8-check.patch"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./autogen.sh || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

server() {
	replaces="mosh"
	pkgdesc="Mosh server"
	depends=
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/mosh-server \
		"$subpkgdir"/usr/bin/ || return 1
}

client() {
	replaces="mosh"
	pkgdesc="Mosh client"
	depends="openssh-client perl-io-tty"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/mosh-client \
		"$subpkgdir"/usr/bin/ || return 1
}

md5sums="bb4e24795bb135a754558176a981ee9e  mosh-1.2.6.tar.gz
f9e6a14dc7a300d95625265ab5e847d7  disable-utf8-check.patch"
sha256sums="7e82b7fbfcc698c70f5843bb960dadb8e7bd7ac1d4d2151c9d979372ea850e85  mosh-1.2.6.tar.gz
60416de55be97a3c80d3b89e44b8602a8b4dcca6de8e70cb15d2c96e30a7de42  disable-utf8-check.patch"
sha512sums="fe53ba3ba79fb393f9fd5d3c48b2864838a1b51a8e08f0160bcfb98fc8c2363d2bb77456e1bc79b765d6489a2af54237c5423ebb88a13196a82420be0cbc7403  mosh-1.2.6.tar.gz
3c3b60b9aa837d76e53855907c59c3b1648e3a2e166b3ec902aec117e4e56d850553a089401a3bb9901412c125d30d4dac76d204721a17286a0ddc922508f6fc  disable-utf8-check.patch"