summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8196c74d9b2b9448661c7421cf06484ccdfc10cb (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
pkgname=tmate-git
pkgver=2.2.0
pkgrel=1
pkgdesc="Instant Terminal Sharing http://tmate.io/"
arch=('i686' 'x86_64')
license=('MIT')
url="http://tmate.io/"
makedepends=('cmake' 'libevent' 'ncurses' 'openssl' 'zlib' 'ruby' 'msgpack-c')

gitroot="https://github.com/tmate-io/tmate.git"
gitname="tmate"
gitbranch="2.2.0"

build() {
  cd ${srcdir}
  if [[ -d ${gitname} ]] ; then
    cd ${gitname}
  else
    git clone -b ${gitbranch} --depth=1 ${gitroot} 
    cd ${gitname}
  fi
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd ${gitname}
  make DESTDIR=${pkgdir} install
}