Skip to content

Commit

Permalink
Close sindresorhusGH-61: Fixed PKGBUILD further.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Falk authored and sindresorhus committed Feb 19, 2014
1 parent 7d3b317 commit 0ce7d9b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Author: Sindre Sorhus
# Maintainer: Pat Brisbin <[email protected]>
pkgname=pure-zsh-prompt
pkgver=0.0.1
# Contributor: Emil Falk <[email protected]>
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() {
Expand Down

0 comments on commit 0ce7d9b

Please sign in to comment.