python-qtawesome: update to 1.3.0

This commit is contained in:
مهدي شينون (Mehdi Chinoune)
2023-12-31 21:30:06 +01:00
parent ac018c7e9c
commit c3e68c8610

View File

@@ -1,25 +1,28 @@
# Contributor: Raed Rizqie <raed.rizqie@gmail.com>
_pyname=QtAwesome
_realname=qtawesome
pkgbase=mingw-w64-python-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
pkgver=1.2.3
pkgrel=2
pkgdesc='Iconic fonts in PyQt and PySide applications (mingw-w64)'
pkgver=1.3.0
pkgrel=1
pkgdesc='FontAwesome icons in PyQt and PySide applications (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
license=('MIT')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
license=('spdx:MIT')
url='https://github.com/spyder-ide/qtawesome'
depends=(
${MINGW_PACKAGE_PREFIX}-python-qtpy
${MINGW_PACKAGE_PREFIX}-python-pyqt5
${MINGW_PACKAGE_PREFIX}-python-pywin32
${MINGW_PACKAGE_PREFIX}-python-jupyter_core)
makedepends=(
${MINGW_PACKAGE_PREFIX}-python
${MINGW_PACKAGE_PREFIX}-python-setuptools)
source=("https://github.com/spyder-ide/${_realname}/archive/v${pkgver}.tar.gz")
sha256sums=('5ae7552c0fc278fe07fc80c138a2ae811b38450c75fde16367497a3a309a15e0')
msys2_references=(
'pypi: QtAwesome'
)
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-qtpy")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
options=(!strip)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('104ed030e2c2237606898a621e8b2dc3f0a64c753a54d7bd6fa0015345fb1ad2')
prepare() {
cd "${srcdir}"
@@ -28,21 +31,15 @@ prepare() {
}
build() {
msg "Python build for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/python-build-${MSYSTEM}"
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
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.txt"
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
# Remove shebang line
sed -e '1 { s/^#!.*$// }' -i "${_f}"
done
}