summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8958cde04211d0e4b94b2408a2506e95cccfd9ba (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
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Christian Neukirchen <chneukirchen@gmail.com>
# Contributor: Thomas Weißschuh <thomas_weissschuh@lavabit.com>

pkgname=mosh-agent
_pkgname=mosh
pkgver=1.4.0
pkgrel=5
pkgdesc='Mobile shell, surviving disconnects with local echo and line editing (with SSH agent forwarding support)'
arch=(x86_64)
url='https://mosh.org/'
license=(GPL3)
depends=(libutempter openssh openssl perl-io-tty protobuf)
makedepends=(git)
provides=(mosh)
conflicts=(mosh)
options=(!emptydirs)
source=("$pkgname::git+https://github.com/intelfx/mosh#branch=work/agent-$pkgver")
b2sums=('SKIP')

build() {
  cd $pkgname
  ./autogen.sh
  ./configure --enable-ufw --enable-agent-forwarding --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  DESTDIR="$pkgdir" make -C $pkgname install
  install -Dm644 "$pkgname/conf/bash-completion/completions/$_pkgname" \
    "$pkgdir/usr/share/bash-completion/completions/$_pkgname"
}

# getver: raw.githubusercontent.com/mobile-shell/mosh/master/ChangeLog