Add Archlinux PKGBUILD.
This commit is contained in:
parent
f23bac5325
commit
729459c9d9
40
dist/archlinux-aur/PKGBUILD
vendored
Normal file
40
dist/archlinux-aur/PKGBUILD
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# 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:
|
BIN
dist/archlinux-aur/liquidprompt-git-20130314-1.src.tar.gz
vendored
Normal file
BIN
dist/archlinux-aur/liquidprompt-git-20130314-1.src.tar.gz
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user