Update PKGBUILD

Fixed so that it does install. Added default pkgver() from arch wiki.
This commit is contained in:
Emil Falk
2014-02-17 22:46:13 +00:00
parent 1a1f68667d
commit 178bc3e7d4

View File

@@ -7,10 +7,16 @@ pkgdesc='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=(pure.zsh) source=($pkgname::${url//https/git})
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
package() { package() {
cd $srcdir/$pkgname
install -Dm644 pure.zsh \ install -Dm644 pure.zsh \
"$pkgdir/usr/share/zsh/functions/Prompts/prompt_pure_setup" "$pkgdir/usr/share/zsh/functions/Prompts/prompt_pure_setup"
} }
md5sums=('673c5d65495ba6942938925ab4cff2d8')