summaryrefslogtreecommitdiff
path: root/cssh/PKGBUILD
blob: d73bf09850a90eee2962fec015475053b0c80535 (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: Erich Eckner <arch at eckner dot net>

pkgname=cssh
pkgver=0.r100.f2cf59b
_commit=${pkgver##*.}
pkgrel=10
arch=('i686' 'pentium4' 'x86_64')
pkgdesc='Parallel ssh client written in C'
url='https://github.com/andreasbaumann/cssh'
license=('GPL2')
_pinned_dependencies=(
  'glibc>=2.31'
  'libncursesw.so=6'
  'libssh=0.9.4'
)
depends=("${_pinned_dependencies[@]}")
makedepends=('git' 'cmake' 'gengetopt')
source=("cssh::git://git.andreasbaumann.cc/cssh.git#commit=${_commit}")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  _rev=$(
    git rev-parse --short master
  )
  _rev_count=$(
    git rev-list "${_rev}" --count
  )
  printf '%s.r%s.%s' \
    '0' \
    "${_rev_count}" \
    "${_rev}"
}

build() {
  cd "${srcdir}/${pkgname}"

  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "${srcdir}/${pkgname}/build"
  make DESTDIR="${pkgdir}" install
}