summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8a626c307edb43eaf6020dbb2c6332e593278b2 (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
# $Id$
# Maintainer: Jiri Tyr <jiri.tyr@gmail.com>

_pkgname=pbt

pkgname="$_pkgname-git"
pkgver=r46.dc5fc93
pkgrel=1
pkgdesc='Bullettrain prompt builder written in Python'
url='https://github.com/jtyr/pbt'
arch=('i686' 'x86_64')
license=('MIT')
makedepends=("python-setuptools")
depends=("python")
optdepends=('nerd-fonts-complete')
conflicts=('pbt')
source=("git+https://github.com/jtyr/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_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
}