summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9134691754e489d8e2ff2bee6bb9a6dde3c8debe (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
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: Ankz <ankz . kothari at gmail.com>
# Contributor: Figue <ffigue at gmail.com>

pkgname=gateone-git
_gitname="GateOne"
pkgver=1.1_r521.g6ae1d01
pkgrel=2
pkgdesc="Web-based terminal emulator and SSH client"
arch=('any')
url="https://github.com/liftoff/GateOne"
license=('AGPL3')
depends=('python2' 'python2-tornado-4.4' 'python2-futures' 'python2-setuptools' 'python2-html5lib')
optdepends=('python2-imaging: A python module for manipulating images'
            'python2-pillow: An alternative to python2-imaging'
            'python2-pam: Only necessary if you plan to use the PAM authentication module'
            'python2-kerberos: Only necessary if you plan to use the Kerberos authentication module'
            'python2-pyopenssl: Used to generate self-signed SSL keys and certificates'
            'dtach: Allows sessions to be resumed even if Gate One is restarted'
            'mutagen: Display audio metadata when reading audio files')
makedepends=('git')
# we need emptydirs for the etc and var-lib folders
options=(emptydirs)
install=${pkgname}.install
source=(git+"https://github.com/liftoff/GateOne.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe | sed -e 's:v::' -e 's:-:_r:' -e 's:-:.:g'
}

package() {
  cd "$srcdir/$_gitname"
  python2 setup.py install --root="$pkgdir/"

  # strip pkgdir reference from service file
  sed -i "s:$pkgdir::" "$pkgdir/usr/lib/systemd/system/gateone.service"

  # create empty conf dir
  install -dm755 "$pkgdir/etc/gateone/conf.d"

  # create empty run dir
  install -dm755 "$pkgdir/var/lib/gateone"
}

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