summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 310ba7861aa5020dcaaebe2e00a0c447beaf1f86 (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: Florian B. 

pkgname="powerline-shell"
pkgver=r546.73b01d6
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")
source=(
  "git${_giturl}.git"
  #${pkgname}-${pkgver}::${url}/archive/master.tar.gz"
)
md5sums=('SKIP')

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

prepare() {
  cd "${srcdir}"
  mv "${pkgname}-master" "${pkgname}"
}

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