summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2457edb06aa48b2c3886833244183d4b4e08dce (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
# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com>

pkgname="gws-git"
_pkgname="gws"
pkgver=0.1.13.r1.g13123d9
pkgrel=3
pkgdesc="Colorful KISS helper for git workspaces"
url="https://github.com/StreakyCobra/gws"
license=('MIT')
arch=('any')
depends=('bash>4.0' 'git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
changelog="ChangeLog"
source=("${_pkgname}::git+https://github.com/StreakyCobra/${_pkgname}.git#branch=master")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}/"

  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${_pkgname}/"

  install -D -m 755 'src/gws' "${pkgdir}/usr/bin/${_pkgname}"
  install -D -m 755 'completions/zsh' "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
  install -D -m 755 'completions/bash' "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
}

# vim:set ts=4 sw=4 et: