summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71f9e45b5806d4ef375b1af1a9eae2aea786c7fb (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
# Maintainer: Eximius http://github.com/eximius
# Contributor: Muflone http://www.muflone.com/contacts/english/
	
pkgname=pyhoca-cli-git
pkgver=0.6.1.x_2b50752
pkgrel=1
pkgdesc="Command line X2Go client written in Python"
url="http://www.x2go.org/"
arch=('any')
license=('AGPL')
makedepends=('python-setuptools')
depends=('python-x2go' 'python-setproctitle')
conflicts=("pyhoca-cli")
provides=("pyhoca-cli")

source=("git://code.x2go.org/pyhoca-cli")
sha256sums=("SKIP")

pkgver() {
  cd pyhoca-cli
  local tag="$(git tag -l | tail -n 1)"
  printf "%s_%s" "${tag%.*}.x" "$(git rev-parse --short HEAD)"
}

build() {
  cd pyhoca-cli
  python setup.py build
}

package() {
  cd pyhoca-cli
  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
  # Install executable
  install -m 755 -d "${pkgdir}/usr/bin"
  install -m 755 -t "${pkgdir}/usr/bin" "pyhoca-cli"
  # Install man page
  install -m 755 -d "${pkgdir}/usr/share/man/man1"
  install -m 755 -t "${pkgdir}/usr/share/man/man1" "man/man1/pyhoca-cli.1"

}