lpr/dist/archlinux-aur/PKGBUILD

41 lines
996 B
Bash
Raw Normal View History

2013-03-14 15:09:06 -04:00
# Maintainer: Julien Pecqueur (JPEC) <jpec[at]julienpecqueur[dot]net>
pkgname=liquidprompt-git
pkgver=20130314
2013-04-29 13:04:15 -04:00
pkgrel=3
2013-03-14 15:09:06 -04:00
pkgdesc="An intelligent and non intrusive prompt for bash and zsh"
url="https://github.com/nojhan/liquidprompt"
arch=('any')
license=('AGPLv3')
2013-04-29 13:04:15 -04:00
optdepends=('screen' 'acpi')
2013-03-14 15:09:06 -04:00
makedepends=('git')
md5sums=('SKIP')
2013-04-29 13:04:15 -04:00
install=liquidprompt.install
2013-03-14 15:09:06 -04:00
_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
2013-04-29 13:04:15 -04:00
install -Dm755 liquidprompt "$pkgdir/usr/bin/liquidprompt"
2013-03-14 15:09:06 -04:00
install -Dm644 liquidpromptrc-dist "$pkgdir/etc/liquidpromptrc"
}
2013-04-29 13:04:15 -04:00
# vim:set ts=2 sw=2 et: