Add package for fprettify and ConfigArgParse
This commit is contained in:
37
mingw-w64-python-configargparse/PKGBUILD
Normal file
37
mingw-w64-python-configargparse/PKGBUILD
Normal file
@@ -0,0 +1,37 @@
|
||||
# Maintainer: Sebastian Ehlert <awvwgk@disroot.org>
|
||||
|
||||
_pyname=ConfigArgParse
|
||||
_realname=configargparse
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=1.5
|
||||
pkgrel=1
|
||||
pkgdesc='A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables (mingw-w64)'
|
||||
url='https://github.com/bw2/ConfigArgParse'
|
||||
license=('MIT')
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-python-yaml: for YAML support")
|
||||
source=("https://github.com/bw2/ConfigArgParse/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
|
||||
sha512sums=('82121fa6e8f734898674220b888dd3670368389a5cbd40e87d9188fa55d4378fdf480cc7dc003a4b9eadc1951fa8fc6141e9c0b079321cfe70c64bebacfb8944')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}
|
||||
rm -rf python-build-${CARCH} | true
|
||||
cp -r "${_pyname}-${pkgver}" "python-build-${CARCH}"
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${CARCH}"
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1 --skip-build
|
||||
}
|
||||
Reference in New Issue
Block a user