diff options
author | Timothée Ravier | 2015-07-20 22:05:45 +0200 |
---|---|---|
committer | Timothée Ravier | 2015-07-20 22:05:45 +0200 |
commit | 04e6c1625bad3a3d4108ba045c37e874764a3ae6 (patch) | |
tree | 954826969c4760840806d78e0308df1d600b8567 | |
parent | be9203f875d841508ede30d95488791be02444a4 (diff) | |
download | aur-04e6c1625bad3a3d4108ba045c37e874764a3ae6.tar.gz |
Fix split package build again (makedepends)
We cannot have per package makedepends, so we can not avoid installing
python2-sphinx to build the python 3 package.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 9 insertions, 15 deletions
@@ -1,13 +1,17 @@ pkgbase = python-powerline-git pkgdesc = The ultimate statusline/prompt utility pkgver = r2391.090cd13 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = https://github.com/powerline/powerline install = powerline.install arch = i686 arch = x86_64 license = MIT + makedepends = git + makedepends = python2-setuptools + makedepends = python-setuptools + makedepends = python2-sphinx source = powerline::git://github.com/powerline/powerline.git#branch=develop source = powerline.install sha256sums = SKIP @@ -8,11 +8,12 @@ pkgbase=python-powerline-git pkgname=('python2-powerline-git' 'python-powerline-git') pkgdesc='The ultimate statusline/prompt utility' pkgver=r2391.090cd13 -pkgrel=1 +pkgrel=2 epoch=1 url='https://github.com/powerline/powerline' license=('MIT') arch=('i686' 'x86_64') +makedepends=('git' 'python2-setuptools' 'python-setuptools' 'python2-sphinx') install="${_gitname}.install" source=("${_gitname}::git://github.com/powerline/${_gitname}.git#branch=${_gitbranch}" "${install}") @@ -26,12 +27,7 @@ pkgver() { build() { cd "${_gitname}"/docs - if [ -x "/usr/bin/sphinx-build2" ]; then - make man SPHINXBUILD=sphinx-build2 BUILDDIR=_build-python2 - fi - if [ -x "/usr/bin/sphinx-build" ]; then - make man SPHINXBUILD=sphinx-build BUILDDIR=_build-python - fi + make man SPHINXBUILD=sphinx-build2 } package_generic() { @@ -55,7 +51,7 @@ package_generic() { # Manpages install -dm755 "${pkgdir}/usr/share/man/man1/" - install -Dm644 "docs/${_BUILDDIR}/man/"* "${pkgdir}/usr/share/man/man1/" + install -Dm644 "docs/_build/man/"* "${pkgdir}/usr/share/man/man1/" } package_python2-powerline-git() { @@ -65,7 +61,6 @@ package_python2-powerline-git() { 'mercurial: improved mercurial support' 'zsh: better shell prompt' 'gvim: vim compiled with Python support') - makedepends=('git' 'python2-setuptools' 'python2-sphinx') conflicts=('python2-powerline' 'python-powerline-git' 'python-powerline' @@ -74,8 +69,6 @@ package_python2-powerline-git() { cd "${_gitname}" python2 setup.py install --root="${pkgdir}" --optimize=1 - export _BUILDDIR=_build-python2 - package_generic } @@ -85,7 +78,6 @@ package_python-powerline-git() { 'python-pygit2: improved git support' 'zsh: better shell prompt' 'gvim: vim compiled with Python support') - makedepends=('git' 'python-setuptools' 'python-sphinx') conflicts=('python2-powerline' 'python2-powerline-git' 'python-powerline' @@ -94,7 +86,5 @@ package_python-powerline-git() { cd "${_gitname}" python setup.py install --root="${pkgdir}" --optimize=1 - export _BUILDDIR=_build-python - package_generic } |