diff --git a/arch/PKGBUILD b/arch/PKGBUILD index 3ed5d8f5..a60a8514 100644 --- a/arch/PKGBUILD +++ b/arch/PKGBUILD @@ -1,18 +1,20 @@ # Author: Sindre Sorhus # Maintainer: Pat Brisbin -pkgname=pure-zsh-prompt -pkgver=0.0.1 +# Contributor: Emil Falk +pkgname=zsh-pure-prompt-git +pkgver=r61.7d3b317 pkgrel=1 -pkgdesc='pure prompt for zsh' +pkgdesc='A minimal and pure prompt for zsh.' arch=('any') url='https://github.com/sindresorhus/pure' license=('MIT') -source=($pkgname::${url//https/git}) -md5sums=('SKIP') +depends=('zsh' 'git') +source=("$pkgname::git://github.com/sindresorhus/pure.git") +sha256sums=('SKIP') pkgver() { - cd "$srcdir/$pkgname" - git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' + cd $srcdir/$pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() {