powerline/package/PKGBUILD

38 lines
818 B
Bash

# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
pkgname=powerline-git
pkgver=20130102
pkgrel=1
pkgdesc='The ultimate statusline/prompt utility.'
url='https://github.com/Lokaltog/powerline'
license=('CC BY-SA 3.0')
arch=('any')
depends=('python2>=2.7')
makedepends=('git' 'python2-distribute')
source=()
_gitroot="https://github.com/Lokaltog/powerline.git"
_gitname="powerline"
_gitbranch="develop"
build() {
cd ${srcdir}
msg "Connecting to GitHub..."
if [ -d ${srcdir}/${_gitname} ]; then
cd ${_gitname}
git pull origin ${_gitbranch}
msg "The local files are updated."
else
git clone ${_gitroot}
cd ${_gitname}
git checkout ${_gitbranch}
fi
msg "Git checkout done or server timeout."
python2 setup.py build || return 1
python2 setup.py install --root=${pkgdir} || return 1
}