tmate-io / tmate-ssh-server

tmate SSH server
https://tmate.io
Other
624 stars 145 forks source link

Arch Linux / Manjaro Packet #32

Open ds2k5 opened 7 years ago

ds2k5 commented 7 years ago

PKGBUILD

# Maintainer: ds2k5

pkgname=tmate-slave-git
pkgver=1.8.r1432.g76ec591
pkgrel=1
pkgdesc="Tmate Server - is a fork of tmux. It provides an instant pairing solution."
arch=("any")
url="https://github.com/tmate-io/tmate-slave"
license=("BSD-licensed")
depends=('msgpack-c' 'openssh')
makedepends=('git')
conflicts=('tmate-git')
provides=('tmate-git')
options=(!emptydirs)
source=("${pkgname}::git+https://github.com/tmate-io/tmate-slave")

md5sums=('SKIP')

prepare() {
    cd "${pkgname}"
}

pkgver() {
        cd "${pkgname}"
        git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
    }

build() {
    cd "${pkgname}"
    ./autogen.sh
    ./configure
    make
    strip tmate-slave

}

package() {
    cd "${pkgname}"
    #mkdir -p "$pkgdir/usr/local/bin"
    #make INSTALL_ROOT="$pkgdir/${pkgname}" install
        make DESTDIR="$pkgdir/" install
}

Install with: makepkg && sudo pacman -U tmate-slave-git-.pkg.tar.xz for example: makepkg && sudo pacman -U tmate-slave-git-1.8.r1432.g76ec591-1-any.pkg.tar.xz

nviennot commented 7 years ago

Should this go on AUR? I'm not familiar with best practices