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.
This commit is contained in:
parent
225ac48cfc
commit
ad4a1b546a
|
@ -2,20 +2,15 @@
|
||||||
|
|
||||||
_gitname=powerline
|
_gitname=powerline
|
||||||
_gitbranch=develop
|
_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
|
pkgbase=powerline
|
||||||
pkgver=808.5c88c0a
|
pkgver=822.225ac48
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='The ultimate statusline/prompt utility.'
|
|
||||||
url='https://github.com/Lokaltog/powerline'
|
url='https://github.com/Lokaltog/powerline'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
arch=('any')
|
arch=('any')
|
||||||
depends=('python>=3.2')
|
|
||||||
makedepends=('git' 'python-distribute')
|
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')
|
provides=('powerline')
|
||||||
conflicts=('python2-powerline-git'
|
conflicts=('python2-powerline-git'
|
||||||
'powerline-git')
|
'powerline-git')
|
||||||
|
@ -49,6 +44,13 @@ package_powerline-fontpatcher-git() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package_python-powerline-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}"
|
cd "${_gitname}"
|
||||||
python setup.py install --root="${pkgdir}" --optimize=1
|
python setup.py install --root="${pkgdir}" --optimize=1
|
||||||
|
|
||||||
|
|
|
@ -2,21 +2,15 @@
|
||||||
|
|
||||||
_gitname=powerline
|
_gitname=powerline
|
||||||
_gitbranch=develop
|
_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
|
pkgbase=powerline
|
||||||
pkgver=808.5c88c0a
|
pkgver=822.225ac48
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='The ultimate statusline/prompt utility.'
|
|
||||||
url='https://github.com/Lokaltog/powerline'
|
url='https://github.com/Lokaltog/powerline'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
arch=('any')
|
arch=('any')
|
||||||
depends=('python2>=2.6')
|
|
||||||
makedepends=('git' 'python2-distribute')
|
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')
|
provides=('powerline')
|
||||||
conflicts=('python-powerline-git')
|
conflicts=('python-powerline-git')
|
||||||
replaces=('powerline-git')
|
replaces=('powerline-git')
|
||||||
|
@ -50,6 +44,14 @@ package_powerline-fontpatcher-git() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package_python2-powerline-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}"
|
cd "${_gitname}"
|
||||||
python2 setup.py install --root="${pkgdir}" --optimize=1
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue