40 lines
982 B
Bash
40 lines
982 B
Bash
|
# Maintainer: Julien Pecqueur (JPEC) <jpec[at]julienpecqueur[dot]net>
|
||
|
pkgname=liquidprompt-git
|
||
|
pkgver=20130314
|
||
|
pkgrel=1
|
||
|
pkgdesc="An intelligent and non intrusive prompt for bash and zsh"
|
||
|
url="https://github.com/nojhan/liquidprompt"
|
||
|
arch=('any')
|
||
|
license=('AGPLv3')
|
||
|
depends=('acpi')
|
||
|
optdepends=('screen')
|
||
|
makedepends=('git')
|
||
|
md5sums=('SKIP')
|
||
|
_gitroot="git://github.com/nojhan/liquidprompt.git"
|
||
|
_gitname="liquidprompt"
|
||
|
|
||
|
build() {
|
||
|
cd ${srcdir}/
|
||
|
msg "Connecting to the GIT server...."
|
||
|
if [[ -d ${srcdir}/${_gitname} ]] ; then
|
||
|
cd ${_gitname}
|
||
|
git reset --hard
|
||
|
git pull origin
|
||
|
msg "The local files are updated..."
|
||
|
else
|
||
|
msg "Cloning git repo..."
|
||
|
git clone ${_gitroot}
|
||
|
cd ${_gitname}
|
||
|
fi
|
||
|
git reset --hard
|
||
|
msg "GIT checkout done."
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${srcdir}/${_gitname}"
|
||
|
# install files
|
||
|
install -Dm755 liquidprompt "$pkgdir/usr/local/bin/liquidprompt"
|
||
|
install -Dm644 liquidpromptrc-dist "$pkgdir/etc/liquidpromptrc"
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|