summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5628ca7eb9cd9b10da8e978f734c2747ffa05e28 (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
34
35
36
37
38
# Maintainer: tuftedocelot@fastmail.fm
_basename=git-prompt
_pkgname=${_basename}-rs
pkgname=${_pkgname}-git
pkgver=88
pkgrel=1
pkgdesc='Fast git prompt for various shells written in rust'
arch=('i686' 'x86_64')
url="https://github.com/aignas/git-prompt-rs"
license=('MIT')
depends=()
makedepends=('rust' 'cargo' 'git')
provides=('git-prompt-rs')
conflicts=('git-prompt-rs')
source=("git+${SRC_OVERRIDE:-https://github.com/aignas/git-prompt-rs.git}")
md5sums=('SKIP')

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

package() {
    make -C "$pkgname"
}

package() {
    cd "$srcdir/$_pkgname"
    make \
        DESTDIR="$pkgdir" \
        PREFIX="/usr" \
        DOCDIR="/usr/share/man/man1" \
        BASHDIR=/etc/bash_completion.d \
        ZSHDIR=/usr/share/zsh/site-functions \
        FISHDIR=/usr/share/fish/vendor_completions.d \
        install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}