diff options
author | Erich Eckner <git@eckner.net> | 2018-02-15 16:16:48 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-15 16:16:53 +0100 |
commit | e4814236c6ea50a51ec7a105178b63e34728c79e (patch) | |
tree | a72d2c52cdcfa2d8bc98e10821611f878401d203 /cssh/PKGBUILD | |
parent | 49befb359d391e6d82803842f410429c1679dccb (diff) | |
download | archlinuxewe-e4814236c6ea50a51ec7a105178b63e34728c79e.tar.xz |
cssh neu
Diffstat (limited to 'cssh/PKGBUILD')
-rw-r--r-- | cssh/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cssh/PKGBUILD b/cssh/PKGBUILD new file mode 100644 index 000000000..c77218ccd --- /dev/null +++ b/cssh/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname=cssh +pkgver=0.r98.43aa69b +_commit=${pkgver##*.} +pkgrel=1 +arch=("i686" "x86_64") +pkgdesc="Parallel ssh client written in C" +url="https://github.com/andreasbaumann/cssh" +license=("GPL2") +depends=("libssh") +makedepends=("cmake" "gengetopt") +source=("cssh::git+https://github.com/andreasbaumann/cssh.git") +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/local -DCMAKE_BUILD_TYPE=Release .. + make +} + +package() { + cd "${srcdir}/${pkgname}/build" + make DESTDIR="${pkgdir}" install +} |