summaryrefslogtreecommitdiff
path: root/pssh-git/PKGBUILD
blob: a17816bda13245651d314af4e8e072b44f85cf98 (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: Erich Eckner <arch at eckner dot net>
# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Elis Hughes <elishughes@googlemail.com>

pkgname=pssh-git
pkgver=2.3.1+27+ga2f936b
_commit="${pkgver##*+}"
pkgrel=1
pkgdesc="Parallel versions of the openssh tools ssh, scp, rsync, nuke, slurp"
arch=('any')
url="http://code.google.com/p/parallel-ssh/"
license=('BSD')
depends=('openssh' 'python')
makedepends=('git' 'python-setuptools')
provides=('pssh')
conflicts=('pssh')
source=(git+https://github.com/lilydjwg/pssh.git#commit=${_commit})
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/pssh"
  git describe --long --tags ${_commit} | \
    sed '
      s/^v//
      y/-/+/
    '
}

package() {
  cd "${srcdir}/pssh"

  python setup.py install --root "${pkgdir}"

# fix putty pscp file conflict
  mv "${pkgdir}"/usr/bin/pscp "${pkgdir}"/usr/bin/psshscp
  mv "${pkgdir}"/usr/share/man/man1/pscp.1 "${pkgdir}"/usr/share/man/man1/psshscp.1

# license
  install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/COPYING
}