mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 00:34:49 +02:00
Update Arch Linux PKGBUILDs
This commit is contained in:
parent
7fb67e7350
commit
91c143bdd0
@ -1,7 +1,8 @@
|
|||||||
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
|
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
|
||||||
|
|
||||||
|
pkgbase=python-powerline
|
||||||
pkgname=python-powerline-git
|
pkgname=python-powerline-git
|
||||||
pkgver=20130124
|
pkgver=20130131
|
||||||
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'
|
||||||
@ -21,24 +22,26 @@ _gitname="powerline"
|
|||||||
_gitbranch="develop"
|
_gitbranch="develop"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}
|
cd "${srcdir}"
|
||||||
|
|
||||||
msg "Connecting to GitHub..."
|
msg "Connecting to GitHub..."
|
||||||
|
|
||||||
if [ -d ${srcdir}/${_gitname} ]; then
|
if [ -d "${srcdir}/${_gitname}" ]; then
|
||||||
cd ${_gitname}
|
cd "${_gitname}"
|
||||||
git pull origin ${_gitbranch}
|
git pull origin "${_gitbranch}"
|
||||||
msg "The local files are updated."
|
msg "The local files are updated."
|
||||||
else
|
else
|
||||||
git clone ${_gitroot}
|
git clone "${_gitroot}"
|
||||||
cd ${_gitname}
|
cd "${_gitname}"
|
||||||
git checkout ${_gitbranch}
|
git checkout "${_gitbranch}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg "Git checkout done or server timeout."
|
msg "Git checkout done or server timeout."
|
||||||
|
}
|
||||||
|
|
||||||
python setup.py build || return 1
|
package() {
|
||||||
python setup.py install --root=${pkgdir} || return 1
|
cd "${srcdir}/${_gitname}"
|
||||||
|
python setup.py install --root="${pkgdir}" --optimize=1 || return 1
|
||||||
|
|
||||||
msg2 "Installing fonts..."
|
msg2 "Installing fonts..."
|
||||||
install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
|
install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
|
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
|
||||||
|
|
||||||
|
pkgbase=python-powerline
|
||||||
pkgname=python2-powerline-git
|
pkgname=python2-powerline-git
|
||||||
pkgver=20130124
|
pkgver=20130124
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
@ -22,24 +23,26 @@ _gitname="powerline"
|
|||||||
_gitbranch="develop"
|
_gitbranch="develop"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}
|
cd "${srcdir}"
|
||||||
|
|
||||||
msg "Connecting to GitHub..."
|
msg "Connecting to GitHub..."
|
||||||
|
|
||||||
if [ -d ${srcdir}/${_gitname} ]; then
|
if [ -d "${srcdir}/${_gitname}" ]; then
|
||||||
cd ${_gitname}
|
cd "${_gitname}"
|
||||||
git pull origin ${_gitbranch}
|
git pull origin "${_gitbranch}"
|
||||||
msg "The local files are updated."
|
msg "The local files are updated."
|
||||||
else
|
else
|
||||||
git clone ${_gitroot}
|
git clone "${_gitroot}"
|
||||||
cd ${_gitname}
|
cd "${_gitname}"
|
||||||
git checkout ${_gitbranch}
|
git checkout "${_gitbranch}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg "Git checkout done or server timeout."
|
msg "Git checkout done or server timeout."
|
||||||
|
}
|
||||||
|
|
||||||
python2 setup.py build || return 1
|
package() {
|
||||||
python2 setup.py install --root=${pkgdir} || return 1
|
cd "${srcdir}/${_gitname}"
|
||||||
|
python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1
|
||||||
|
|
||||||
msg2 "Installing fonts..."
|
msg2 "Installing fonts..."
|
||||||
install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
|
install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user