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 # Author: Sindre Sorhus
# Maintainer: Pat Brisbin <pbrisbin@gmail.com> # Maintainer: Pat Brisbin <pbrisbin@gmail.com>
pkgname=pure-zsh-prompt # Contributor: Emil Falk <emph@emph.se>
pkgver=0.0.1 pkgname=zsh-pure-prompt-git
pkgver=r61.7d3b317
pkgrel=1 pkgrel=1
pkgdesc='pure prompt for zsh' pkgdesc='A minimal and pure prompt for zsh.'
arch=('any') arch=('any')
url='https://github.com/sindresorhus/pure' url='https://github.com/sindresorhus/pure'
license=('MIT') license=('MIT')
source=($pkgname::${url//https/git}) depends=('zsh' 'git')
md5sums=('SKIP') source=("$pkgname::git://github.com/sindresorhus/pure.git")
sha256sums=('SKIP')
pkgver() { pkgver() {
cd "$srcdir/$pkgname" cd $srcdir/$pkgname
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
package() { package() {