summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 023a7ecca97f4fba651c7d0b25ddeb3f10d801ca (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
# Maintainer: Florian B. 

pkgname="powerline-shell-git"
_pkgname="powerline-shell"
pkgver=r3.3c5ca0c
pkgrel=1
pkgdesc="A pretty prompt for your shell"
arch=("any")
_giturl="://github.com/b-ryan/powerline-shell"
url="https${_giturl}"
license=("MIT")
provides=("${_pkgname}")
depends=("python")
makedepends=(
  "git" "python-setuptools"
)
source=(
  "git${_giturl}.git"
)
md5sums=('SKIP')

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

package() {
  cd "${srcdir}/${_pkgname}"
  python setup.py install --root="${pkgdir}" --optimize=1
}