From ad4a1b546a16f719001ed76002e81bd987495d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Wed, 31 Jul 2013 16:11:20 +0200 Subject: [PATCH] Fix Arch Linux AUR package upload issues Some workarounds have been added so that AUR correctly parses the package name and dependencies when the package is uploaded. --- .../archlinux/python-powerline-git/PKGBUILD | 18 +++++++++-------- .../archlinux/python2-powerline-git/PKGBUILD | 20 ++++++++++--------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/packages/archlinux/python-powerline-git/PKGBUILD b/packages/archlinux/python-powerline-git/PKGBUILD index 2d9141b7..b49dffbf 100644 --- a/packages/archlinux/python-powerline-git/PKGBUILD +++ b/packages/archlinux/python-powerline-git/PKGBUILD @@ -2,20 +2,15 @@ _gitname=powerline _gitbranch=develop -pkgname=("python-${_gitname}-git" "powerline-fontpatcher-git") +pkgname="python-${_gitname}-git" # Workaround for missing split package support in AUR +true && pkgname=("python-${_gitname}-git" "${_gitname}-fontpatcher-git") pkgbase=powerline -pkgver=808.5c88c0a +pkgver=822.225ac48 pkgrel=1 -pkgdesc='The ultimate statusline/prompt utility.' url='https://github.com/Lokaltog/powerline' license=('MIT') arch=('any') -depends=('python>=3.2') makedepends=('git' 'python-distribute') -optdepends=('python-psutil: improved system information' - 'python-pygit2: improved git support' - 'zsh: better shell prompt' - 'gvim: vim compiled with Python support') provides=('powerline') conflicts=('python2-powerline-git' 'powerline-git') @@ -49,6 +44,13 @@ package_powerline-fontpatcher-git() { } package_python-powerline-git() { + pkgdesc='The ultimate statusline/prompt utility.' + depends=('python>=3.2') + optdepends=('python-psutil: improved system information' + 'python-pygit2: improved git support' + 'zsh: better shell prompt' + 'gvim: vim compiled with Python support') + cd "${_gitname}" python setup.py install --root="${pkgdir}" --optimize=1 diff --git a/packages/archlinux/python2-powerline-git/PKGBUILD b/packages/archlinux/python2-powerline-git/PKGBUILD index 796ac74b..e01e70ff 100644 --- a/packages/archlinux/python2-powerline-git/PKGBUILD +++ b/packages/archlinux/python2-powerline-git/PKGBUILD @@ -2,21 +2,15 @@ _gitname=powerline _gitbranch=develop -pkgname=("python2-${_gitname}-git" "powerline-fontpatcher-git") +pkgname="python2-${_gitname}-git" # Workaround for missing split package support in AUR +true && pkgname=("python2-${_gitname}-git" "${_gitname}-fontpatcher-git") pkgbase=powerline -pkgver=808.5c88c0a +pkgver=822.225ac48 pkgrel=1 -pkgdesc='The ultimate statusline/prompt utility.' url='https://github.com/Lokaltog/powerline' license=('MIT') arch=('any') -depends=('python2>=2.6') makedepends=('git' 'python2-distribute') -optdepends=('python2-psutil: improved system information' - 'python2-pygit2: improved git support' - 'mercurial: improved mercurial support' - 'zsh: better shell prompt' - 'gvim: vim compiled with Python support') provides=('powerline') conflicts=('python-powerline-git') replaces=('powerline-git') @@ -50,6 +44,14 @@ package_powerline-fontpatcher-git() { } package_python2-powerline-git() { + pkgdesc='The ultimate statusline/prompt utility.' + depends=('python2>=2.6') + optdepends=('python2-psutil: improved system information' + 'python2-pygit2: improved git support' + 'mercurial: improved mercurial support' + 'zsh: better shell prompt' + 'gvim: vim compiled with Python support') + cd "${_gitname}" python2 setup.py install --root="${pkgdir}" --optimize=1