summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3c6d27e6c9cfed043fd79c342dc92ecc5b20b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Jonian Guveli <https://github.com/jonian/>
pkgname=oh-my-git
pkgver=r231.fd13327
pkgrel=1
pkgdesc="An opinionated git prompt for bash and zsh"
arch=("any")
url="https://github.com/arialdomartini/oh-my-git"
license=("MIT")
optdepends=("awesome-terminal-fonts-patched")
makedepends=("git")
source=("$pkgname::git+$url")
md5sums=("SKIP")

pkgver() {
  cd "$srcdir/$pkgname"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
  install -d "$pkgdir/opt" && cp -a "$srcdir/$pkgname" "$_"
}