summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65f79a53cd81d486dc34757bb0f3bab9578abc4b (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: Jordan Cannon <LiteracyFanatic@gmail.com>

_pkgname=pureline
pkgname=bash-pureline-git
pkgver=r212.9abbdc4
pkgrel=1
pkgdesc="A simple but powerful Powerline style prompt for the Bash shell written in Bash script"
url="https://github.com/chris-marsh/pureline"
arch=('any')
license=('MIT')
depends=('sh')
provides=('bash-pureline')
install=bash-pureline-git.install
makedepends=('git')
source=(git+https://github.com/chris-marsh/pureline.git)
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pkgname"
  install -D -m644 -t "$pkgdir/usr/share/$_pkgname/" pureline
  install -D -m644 -t "$pkgdir/usr/share/$_pkgname/configs/" configs/*.conf
  install -D -m644 -t "$pkgdir/usr/share/$_pkgname/segments/" segments/*
  install -D -m644 -t "$pkgdir/usr/share/licenses/$_pkgname/" LICENSE.md
}