On Mon, Jun 30, 2014 at 03:11:54PM -0400, Storm Dragon wrote:
Hi, I must be missing something. When I install python-pypump-git or python2-pypump-git, I get the same package. I have other split packages installed and they install correctly. Can someone look at this PKGBUILD and let me know what I did wrong? Thanks Storm --
-- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 How many Internet mail list subscribers does it take to change a lightbulb? http://goo.gl/eO4PJ "Serpent's kin, born of sin. Dark within, father of the wolf!" Amon Amarth - Father of the Wolf
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
pkgbase=python-pypump-git pkgname=("python-pypump-git" "python2-pypump-git") pkgver=v0.5.r76.gc73e093 pkgrel=2 pkgdesc="An interface to the pump.io API's." arch=('any') url="https://github.com/xray7224/pypump" license=('GPL3') source=("git+https://github.com/xray7224/pypump.git") md5sums=('SKIP')
pkgver() { cd "${srcdir}/pypump" git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }
package_python-pypump-git() { depends=('python' 'python-requests' 'python-requests-oauthlib' 'python-six' 'python-dateutil') makedepends=('python-setuptools')
makedepends in a package function will never be read. This array belongs in the global section.
cd "${srcdir}/pypump" python setup.py install --root="${pkgdir}/" --optimize=1 }
package_python2-pypump-git() { depends=('python2' 'python2-requests' 'python2-requests-oauthlib' 'python2-six' 'python2-dateutil') makedepends=('python2-setuptools')
Same. Merge this into a global makedepends.
cd "${srcdir}/pypump" python2 setup.py install --root="${pkgdir}/" --optimize=1
So, does the following work? makepkg -i --pkg python2-pypump-git makepkg -i --pkg python-pypump-git If it does, you need to make a prepare function that makes a copy of the source tarball so that you aren't reusing the same build directories for 2 different builds.
}