27 lines
705 B
Bash
27 lines
705 B
Bash
|
# Author: Sindre Sorhus
|
||
|
# Maintainer: Pat Brisbin <pbrisbin@gmail.com>
|
||
|
# Contributor: Emil Falk <emph@emph.se>
|
||
|
pkgname=zsh-pure-prompt-git
|
||
|
pkgver=r61.7d3b317
|
||
|
pkgrel=1
|
||
|
pkgdesc='A minimal and pure prompt for zsh.'
|
||
|
arch=('any')
|
||
|
url='https://github.com/sindresorhus/pure'
|
||
|
license=('MIT')
|
||
|
depends=('zsh' 'git')
|
||
|
source=("$pkgname::git://github.com/sindresorhus/pure.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
|
||
|
install -Dm644 pure.zsh \
|
||
|
"$pkgdir/usr/share/zsh/functions/Prompts/prompt_pure_setup"
|
||
|
install -Dm644 async.zsh \
|
||
|
"$pkgdir/usr/share/zsh/functions/async"
|
||
|
}
|