This allows us to include a version and we already use PURL for other things, so might as well remove the pypi special case. Normalize the names, since that is required for PURLs.
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Contributor: Melven Roehrig-Zoellner <Melven.Roehrig-Zoellner@DLR.de>
|
|
# mostly copied from ../mingw-w64-python-pyqt5/PKGBUILD
|
|
|
|
_realname=pyqt5-3d
|
|
pkgbase=mingw-w64-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=5.15.7
|
|
pkgrel=1
|
|
pkgdesc="Qt5 Qt3D bindings for Python (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
msys2_references=(
|
|
'purl: pkg:pypi/pyqt3d'
|
|
)
|
|
license=('GPL')
|
|
url="https://riverbankcomputing.com/software/pyqt3d"
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python-pyqt5"
|
|
"${MINGW_PACKAGE_PREFIX}-qt5-3d"
|
|
"${MINGW_PACKAGE_PREFIX}-qt5-gamepad")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
|
"${MINGW_PACKAGE_PREFIX}-sip"
|
|
"${MINGW_PACKAGE_PREFIX}-pyqt-builder"
|
|
"${MINGW_PACKAGE_PREFIX}-python-packaging")
|
|
source=(https://pypi.python.org/packages/source/P/PyQt3D/PyQt3D-${pkgver}.tar.gz)
|
|
sha256sums=('ea783eb546c7dad2d5eaaf82ea5050dde45255a9842e0a1d7584881e9e25a951')
|
|
|
|
build() {
|
|
[[ -d python-${MSYSTEM} ]] && rm -rf python-${MSYSTEM}
|
|
cp -r PyQt3D-${pkgver} python-${MSYSTEM} && cd python-${MSYSTEM}
|
|
|
|
MSYS2_ARG_CONV_EXCL="--api-dir=;" \
|
|
${MINGW_PREFIX}/bin/sip-build \
|
|
--no-make \
|
|
--api-dir=${MINGW_PREFIX}/share/qt5/qsci/api/python \
|
|
--qmake=${MINGW_PREFIX}/bin/qmake.exe
|
|
|
|
cd build
|
|
make
|
|
}
|
|
|
|
package(){
|
|
cd python-${MSYSTEM}/build
|
|
|
|
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
|
|
}
|