Add python-virtualenv
This commit is contained in:
34
mingw-w64-python-virtualenv/PKGBUILD
Normal file
34
mingw-w64-python-virtualenv/PKGBUILD
Normal file
@@ -0,0 +1,34 @@
|
||||
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
||||
|
||||
_realname=virtualenv
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-virtualenv")
|
||||
pkgver=20.0.35
|
||||
pkgrel=1
|
||||
pkgdesc="Virtual Python Environment builder (mingw-w64)"
|
||||
url="https://virtualenv.pypa.io/"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-appdirs"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-distlib"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-filelock"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-six")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools-scm")
|
||||
source=(${_realname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz)
|
||||
sha256sums=('2a72c80fa2ad8f4e2985c06e6fc12c3d60d060e410572f553c90619b0f6efaf3')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1
|
||||
|
||||
install -Dm644 LICENSE -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
|
||||
}
|
||||
Reference in New Issue
Block a user