summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6acea5ac3895cb89fec9bc5f19ebd3bccc1cad88 (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
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: "Amhairghin" Oscar Garcia Amor
# Contributors: bhushan, huma, adlaiff6, Invie, solarce

pkgname=tmate-git
pkgver=2.4.0.r29.gac919516
pkgrel=1
pkgdesc="Instant terminal sharing"
arch=('x86_64')
url="https://tmate.io/"
license=('ISC')
depends=('libevent' 'libssh' 'libutempter' 'msgpack-c' 'ncurses')
makedepends=('git')
source=("git+https://github.com/tmate-io/tmate.git"
        "msgpack-v6.patch")
sha256sums=('SKIP'
            'a57077d0245bbf1138dc53f0e11398fd3614d46eb345723b6976d4e2036c79d6')

pkgver() {
  cd tmate
  git describe --tags | sed 's/-/.r/;s/-/./g'
}

prepare() {
  cd tmate
  patch -p1 < ../msgpack-v6.patch
  ./autogen.sh
  autoupdate
}

build() {
  cd tmate
  ./configure --prefix=/usr
  make
}

package() {
  cd tmate
  make DESTDIR="${pkgdir}" install
  install -Dm644 -t "${pkgdir}/usr/share/licenses/$pkgname" COPYING
}

# vim: set ts=2 sw=2 et: