Files
MINGW-packages/mingw-w64-python-dotenv/PKGBUILD
Christoph Reiter 09fc5ff426 Python rebuilds
2023-07-24 18:19:03 +02:00

39 lines
1.3 KiB
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=dotenv
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.0.0
pkgrel=2
pkgdesc="Get and set values in your .env file in local and production servers (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
url="https://github.com/theskumar/python-dotenv/"
license=('BSD')
depends=("${MINGW_PACKAGE_PREFIX}-python-click")
options=("!strip")
makedepends=(
"${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel"
)
source=("${_realname}-${pkgver}.tar.gz::https://github.com/theskumar/python-dotenv/archive/v${pkgver}.tar.gz")
sha256sums=('93fc54524656990bc9911ab224c991457cd8f39364c48cded2f1c4cb3846c0ac')
build() {
cd "python-${_realname}-${pkgver}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "python-${_realname}-${pkgver}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}