Files
MINGW-packages/mingw-w64-python-pysfcgal/PKGBUILD
2024-12-20 10:50:38 +01:00

44 lines
1.4 KiB
Bash

# Maintainer: Loïc Bartoletti <loic.bartoletti@oslandia.com>
_realname=pysfcgal
pkgbase=mingw-w64-python-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
pkgver=2.0.0
pkgrel=1
pkgdesc='Python SFCGAL binding (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://gitlab.com/SFCGAL/pysfcgal'
msys2_references=(
'pypi: PySFCGAL'
)
license=('spdx:GPL-3.0-or-later')
depends=(
${MINGW_PACKAGE_PREFIX}-python
${MINGW_PACKAGE_PREFIX}-sfcgal
${MINGW_PACKAGE_PREFIX}-python-cffi
)
makedepends=(
${MINGW_PACKAGE_PREFIX}-cc
${MINGW_PACKAGE_PREFIX}-python-build
${MINGW_PACKAGE_PREFIX}-python-installer
${MINGW_PACKAGE_PREFIX}-python-setuptools
)
source=(https://gitlab.com/SFCGAL/pysfcgal/-/archive/v${pkgver}/pysfcgal-v${pkgver}.tar.gz)
sha256sums=('fad4832d0264b1d20dc5425366d6dbc6321efac88298ff7bd0ea7a796738488f')
build() {
cp -r "${_realname}-v${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.md "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.md"
}