Add PKGBUILD for Arch Linux users

This commit is contained in:
Kim Silkebækken 2012-12-17 15:06:14 +01:00
parent 254473419b
commit 8ccf223213
2 changed files with 40 additions and 0 deletions

3
package/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!PKGBUILD

37
package/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
pkgname=powerline-git
pkgver=20121217
pkgrel=1
pkgdesc='The ultimate statusline/prompt utility.'
url='https://github.com/Lokaltog/powerline'
license=('CC BY-SA 3.0')
arch=('any')
depends=('vim' 'python2>=2.7')
makedepends=('git')
source=()
_gitroot="git://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}
git checkout ${_gitbranch}
fi
msg "Git checkout done or server timeout."
cd ${srcdir}/${_gitname}
python2 setup.py build || return 1
python2 setup.py install --root=${pkgdir} || return 1
}