Merge branch 'feature/update-archlinux-packages' into develop

This commit is contained in:
Kim Silkebækken 2013-06-28 14:15:07 +02:00
commit 67dff293b8
2 changed files with 26 additions and 50 deletions

View File

@ -1,7 +1,9 @@
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com> # Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
pkgname=python-powerline-git _gitname=powerline
pkgver=20130412 _gitbranch=develop
pkgname="python-${_gitname}-git"
pkgver=793.4ee5072
pkgrel=1 pkgrel=1
pkgdesc='The ultimate statusline/prompt utility.' pkgdesc='The ultimate statusline/prompt utility.'
url='https://github.com/Lokaltog/powerline' url='https://github.com/Lokaltog/powerline'
@ -15,33 +17,19 @@ optdepends=('python-psutil: improved system information'
'gvim: vim compiled with Python support') 'gvim: vim compiled with Python support')
conflicts=('python2-powerline-git' conflicts=('python2-powerline-git'
'powerline-git') 'powerline-git')
install='powerline.install' install="${_gitname}.install"
source=() source=("${_gitname}::git://github.com/Lokaltog/${_gitname}.git#branch=${_gitbranch}"
"${install}")
sha256sums=('SKIP'
'7b1257cdacce60e19280f7d918e5f3aa6f13b519dff16ecc6f732c881ef63ca1')
_gitroot="https://github.com/Lokaltog/powerline.git" pkgver() {
_gitname="powerline" cd "${_gitname}"
_gitbranch="develop" echo "$(git rev-list --count ${_gitbranch}).$(git rev-parse --short ${_gitbranch})"
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."
} }
package() { package() {
cd "${srcdir}/${_gitname}" cd "${_gitname}"
python setup.py install --root="${pkgdir}" --optimize=1 || return 1 python setup.py install --root="${pkgdir}" --optimize=1 || return 1
msg2 "Installing fonts..." msg2 "Installing fonts..."

View File

@ -1,7 +1,9 @@
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com> # Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
pkgname=python2-powerline-git _gitname=powerline
pkgver=20130412 _gitbranch=develop
pkgname="python2-${_gitname}-git"
pkgver=793.4ee5072
pkgrel=1 pkgrel=1
pkgdesc='The ultimate statusline/prompt utility.' pkgdesc='The ultimate statusline/prompt utility.'
url='https://github.com/Lokaltog/powerline' url='https://github.com/Lokaltog/powerline'
@ -16,33 +18,19 @@ optdepends=('python2-psutil: improved system information'
'gvim: vim compiled with Python support') 'gvim: vim compiled with Python support')
conflicts=('python-powerline-git') conflicts=('python-powerline-git')
replaces=('powerline-git') replaces=('powerline-git')
install='powerline.install' install="${_gitname}.install"
source=() source=("${_gitname}::git://github.com/Lokaltog/${_gitname}.git#branch=${_gitbranch}"
"${install}")
sha256sums=('SKIP'
'e8ab7fb51ac7244bfad973a999c9333ba4334fa391aa890489cf8c8f1211c94f')
_gitroot="https://github.com/Lokaltog/powerline.git" pkgver() {
_gitname="powerline" cd "${_gitname}"
_gitbranch="develop" echo "$(git rev-list --count ${_gitbranch}).$(git rev-parse --short ${_gitbranch})"
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."
} }
package() { package() {
cd "${srcdir}/${_gitname}" cd "${_gitname}"
python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1 python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1
msg2 "Installing fonts..." msg2 "Installing fonts..."