summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1884f09fb75d0a1dd99715e932ef6a7f2af8ff6c (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
# Maintainer: TJ Hoplock <t.hoplock at gmail dot com>
pkgname=tmuxer-git
pkgver=2.3.1
pkgrel=1
pkgdesc="Tmux layout generator and command executor"
arch=('any')
url="https://github.com/tjhop/tmuxer"
license=('MIT')
depends=('bash' 'coreutils' 'sed' 'tmux')
makedepends=('git')
optdepends=('openssh')
provides=('tmuxer')
conflicts=('tmuxer')
source=("$pkgname::git+https://github.com/tjhop/${pkgname%-*}.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
    cd "$pkgname"
    install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm755 ./tmuxer "$pkgdir/usr/bin/tmuxer"
}