mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 09:15:19 +02:00
Add PKGBUILD for Arch Linux users
This commit is contained in:
parent
254473419b
commit
8ccf223213
3
package/.gitignore
vendored
Normal file
3
package/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
|
!PKGBUILD
|
37
package/PKGBUILD
Normal file
37
package/PKGBUILD
Normal 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user