From 91c143bdd0caa6770c5ab50a59d5ae265d48691e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Thu, 31 Jan 2013 10:34:23 +0100 Subject: [PATCH] Update Arch Linux PKGBUILDs --- .../archlinux/python-powerline-git/PKGBUILD | 23 +++++++++++-------- .../archlinux/python2-powerline-git/PKGBUILD | 21 +++++++++-------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/packages/archlinux/python-powerline-git/PKGBUILD b/packages/archlinux/python-powerline-git/PKGBUILD index cdf78f1e..7e02ee6d 100644 --- a/packages/archlinux/python-powerline-git/PKGBUILD +++ b/packages/archlinux/python-powerline-git/PKGBUILD @@ -1,7 +1,8 @@ # Maintainer: Kim Silkebækken +pkgbase=python-powerline pkgname=python-powerline-git -pkgver=20130124 +pkgver=20130131 pkgrel=1 pkgdesc='The ultimate statusline/prompt utility.' url='https://github.com/Lokaltog/powerline' @@ -21,24 +22,26 @@ _gitname="powerline" _gitbranch="develop" build() { - cd ${srcdir} + cd "${srcdir}" msg "Connecting to GitHub..." - if [ -d ${srcdir}/${_gitname} ]; then - cd ${_gitname} - git pull origin ${_gitbranch} + 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} + git clone "${_gitroot}" + cd "${_gitname}" + git checkout "${_gitbranch}" fi msg "Git checkout done or server timeout." +} - python setup.py build || return 1 - python setup.py install --root=${pkgdir} || return 1 +package() { + cd "${srcdir}/${_gitname}" + python setup.py install --root="${pkgdir}" --optimize=1 || return 1 msg2 "Installing fonts..." install -dm755 "${pkgdir}/usr/share/fonts/TTF/" diff --git a/packages/archlinux/python2-powerline-git/PKGBUILD b/packages/archlinux/python2-powerline-git/PKGBUILD index 386fafbc..b78fbe79 100644 --- a/packages/archlinux/python2-powerline-git/PKGBUILD +++ b/packages/archlinux/python2-powerline-git/PKGBUILD @@ -1,5 +1,6 @@ # Maintainer: Kim Silkebækken +pkgbase=python-powerline pkgname=python2-powerline-git pkgver=20130124 pkgrel=1 @@ -22,24 +23,26 @@ _gitname="powerline" _gitbranch="develop" build() { - cd ${srcdir} + cd "${srcdir}" msg "Connecting to GitHub..." - if [ -d ${srcdir}/${_gitname} ]; then - cd ${_gitname} - git pull origin ${_gitbranch} + 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} + 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 +package() { + cd "${srcdir}/${_gitname}" + python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1 msg2 "Installing fonts..." install -dm755 "${pkgdir}/usr/share/fonts/TTF/"