Close GH-61: Fixed PKGBUILD further.

This commit is contained in:
Emil Falk
2014-02-20 00:07:15 +01:00
committed by Sindre Sorhus
parent 7d3b3171df
commit 0ce7d9b371

View File

@@ -1,18 +1,20 @@
# Author: Sindre Sorhus
# Maintainer: Pat Brisbin <pbrisbin@gmail.com>
pkgname=pure-zsh-prompt
pkgver=0.0.1
# Contributor: Emil Falk <emph@emph.se>
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() {