From a698444839a1fb10ce89be3ffd7c6680fdb1f28d Mon Sep 17 00:00:00 2001 From: Raed Rizqie Date: Tue, 19 Oct 2021 20:01:49 +0800 Subject: [PATCH] python-qstylizer 0.2.1 --- mingw-w64-python-qstylizer/PKGBUILD | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mingw-w64-python-qstylizer/PKGBUILD diff --git a/mingw-w64-python-qstylizer/PKGBUILD b/mingw-w64-python-qstylizer/PKGBUILD new file mode 100644 index 0000000000..94c0b9cd76 --- /dev/null +++ b/mingw-w64-python-qstylizer/PKGBUILD @@ -0,0 +1,40 @@ +_realname=qstylizer +pkgbase=mingw-w64-python-${_realname} +pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname} +pkgver=0.2.1 +pkgrel=1 +pkgdesc='Qt stylesheet generation utility for PyQt/PySide (mingw-w64)' +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') +license=('MIT') +url='https://github.com/blambright/qstylizer' +depends=( + ${MINGW_PACKAGE_PREFIX}-python-pyqt5) +makedepends=( + ${MINGW_PACKAGE_PREFIX}-python + ${MINGW_PACKAGE_PREFIX}-python-pip + ${MINGW_PACKAGE_PREFIX}-python-wheel + ${MINGW_PACKAGE_PREFIX}-python-setuptools) +source=("https://github.com/blambright/${_realname}/archive/${pkgver}.tar.gz") +sha256sums=('1f6d29207f7dc3644fd2270cc6ebce2f764d6017c66cb300d725abd1725e74b1') + +prepare() { + cd "${srcdir}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" +} + +build() { + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" + ${MINGW_PREFIX}/bin/python setup.py build +} + +package() { + cd "${srcdir}/python-build-${CARCH}" + 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.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.txt" +}