Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch Linux / Manjaro Packet #32

Open
ds2k5 opened this issue Dec 20, 2016 · 1 comment
Open

Arch Linux / Manjaro Packet #32

ds2k5 opened this issue Dec 20, 2016 · 1 comment

Comments

@ds2k5
Copy link

ds2k5 commented Dec 20, 2016

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants