From 8aeb45e60677eb2c75b2c5d2e494e803fc8f4172 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 27 Jul 2022 21:57:49 +0100 Subject: [PATCH] Added mingw-w64-python-pluginbase --- mingw-w64-python-pluginbase/PKGBUILD | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 mingw-w64-python-pluginbase/PKGBUILD diff --git a/mingw-w64-python-pluginbase/PKGBUILD b/mingw-w64-python-pluginbase/PKGBUILD new file mode 100755 index 0000000000..10a9f6c87c --- /dev/null +++ b/mingw-w64-python-pluginbase/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Joel Holdsworth + +_realname=pluginbase +pkgbase=mingw-w64-python-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") +provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") +conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") +replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Python library that enables the development of flexible plugin systems (mingw-w64)" +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +license=('spdx:BSD-3-Clause') +url="http://pluginbase.pocoo.org/" +depends=("${MINGW_PACKAGE_PREFIX}-python") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +options=('staticlibs') +source=("${_realname}-${pkgver}.tar.gz::https://github.com/mitsuhiko/pluginbase/archive/v${pkgver}.tar.gz") +sha256sums=('bb95fe6a84ec6583e1be399ef6705011262757c69fb99fa24317fcc6e8998ffc') + +build() { + msg "Python build for ${MSYSTEM}" + 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}" --optimize=1 --skip-build + + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/COPYING" +}