Date: Friday, October 20, 2017 @ 22:59:49 Author: foxboron Revision: 263770
Upload python-pipenv from AUR Added: python-pipenv/ python-pipenv/repos/ python-pipenv/trunk/ python-pipenv/trunk/PKGBUILD ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Added: python-pipenv/trunk/PKGBUILD =================================================================== --- python-pipenv/trunk/PKGBUILD (rev 0) +++ python-pipenv/trunk/PKGBUILD 2017-10-20 22:59:49 UTC (rev 263770) @@ -0,0 +1,48 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: Maikel Wever <maikelwe...@gmail.com> + +pkgbase=python-pipenv +pkgname=(python-pipenv python2-pipenv) +pkgver=8.2.7 +pkgrel=2 +pkgdesc="Sacred Marriage of Pipfile, Pip, & Virtualenv." +url="https://docs.pipenv.org" +arch=('any') +license=('MIT') +makedepends=('python' 'python-setuptools' + 'python2' 'python2-setuptools') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kennethreitz/pipenv/archive/v${pkgver}.tar.gz") +sha256sums=('60e1674f26a5ca8261404f054e46bc5755dc7237300d2b18525eacd1849c704b') + +prepare() { + cp -a pipenv-$pkgver{,-py2} +} + +build(){ + cd "$srcdir/pipenv-$pkgver" + python setup.py build + + cd "$srcdir/pipenv-$pkgver-py2" + python2 setup.py build +} + +package_python2-pipenv() { + depends=('python2' 'python2-pip' 'python2-pew' + 'python2-virtualenv' 'python2-flake8' 'python2-requests' + 'python2-urllib3') + cd "pipenv-$pkgver-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + mv "${pkgdir}/usr/bin/pipenv" "${pkgdir}/usr/bin/pipenv2" +} + +package_python-pipenv() { + depends=('python' 'python-pip' 'python-pew' + 'python-virtualenv' 'flake8' 'python-requests' + 'python-urllib3') + cd "pipenv-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +