# Author: Sindre Sorhus # Maintainer: Pat Brisbin pkgname=pure-zsh-prompt pkgver=0.0.1 pkgrel=1 pkgdesc='pure prompt for zsh' arch=('any') url='https://github.com/sindresorhus/pure' license=('MIT') source=($pkgname::${url//https/git}) md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } package() { cd $srcdir/$pkgname install -Dm644 pure.zsh \ "$pkgdir/usr/share/zsh/functions/Prompts/prompt_pure_setup" }