* python-cx-freeze: update to 8.2.0 (and add dependencies) * include dependencies to depends list
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Maintainer: Marcelo Duarte https://github.com/marcelotduarte
|
|
|
|
_realname=striprtf
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=0.0.29
|
|
pkgrel=1
|
|
pkgdesc="A simple library to convert rtf to text (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
url="https://github.com/joshy/striprtf"
|
|
msys2_references=(
|
|
'purl: pkg:pypi/striprtf'
|
|
)
|
|
license=('spdx:BSD-3-Clause')
|
|
depends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python"
|
|
)
|
|
makedepends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
|
"${MINGW_PACKAGE_PREFIX}-python-hatchling"
|
|
)
|
|
options=(!strip)
|
|
source=(
|
|
"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
|
)
|
|
sha256sums=(
|
|
'5a822d075e17417934ed3add6fc79b5fc8fb544fe4370b2f894cdd28f0ddd78e'
|
|
)
|
|
|
|
prepare() {
|
|
cd "$srcdir"
|
|
rm -rf python-build-${MSYSTEM} | true
|
|
|
|
cp -r "${_realname//_/-}-$pkgver" "python-build-${MSYSTEM}"
|
|
}
|
|
|
|
build() {
|
|
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 "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
|
}
|
|
|