summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11cc0e9b7fedf861a6c071e09d3765ec278c0d44 (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
33
# Maintainer: Ted Meyer <tmathmeyer@gmail.com>

_pkgname=psg
pkgname=${_pkgname}
pkgver=2
pkgrel=1
pkgdesc='C program for generating powerline PS1s for bash'
arch=('x86_64')
url="https://github.com/tmathmeyer/${_pkgname}"
license=('GPL')
depends=()
makedepends=('git')
optdepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git://github.com/tmathmeyer/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git rev-list --count HEAD
}

build() {
    cd "$srcdir/$_pkgname/"
    make
}

package() {
    installDir="$pkgdir/usr/bin"
    install -dm755 "$installDir"
    install -m755 "$srcdir/$_pkgname/psg" "$installDir/psg"
}