Skip to content

Commit

Permalink
python-sphinx-lv2-theme: update to 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Oct 28, 2023
1 parent 765b3af commit 71bff36
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions mingw-w64-python-sphinx-lv2-theme/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,48 +1,41 @@
# Maintainer: Biswapriyo Nath <[email protected]>

_realname=python-sphinx-lv2-theme
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.4.0
pkgrel=2
_realname=sphinx-lv2-theme
_pyname=sphinx_lv2_theme
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.4.2
pkgrel=1
pkgdesc="A minimal static theme for Sphinx (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
msys2_references=(
'archlinux: python-sphinx-lv2-theme'
'pypi: sphinx-lv2-theme'
)
url="https://gitlab.com/lv2/sphinx_lv2_theme"
license=("spdx:ISC")
license=("spdx:0BSD")
makedepends=(
"${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel"
)
depends=("${MINGW_PACKAGE_PREFIX}-python-sphinx")
source=("https://files.pythonhosted.org/packages/source/s/sphinx_lv2_theme/sphinx_lv2_theme-${pkgver}.tar.gz")
sha256sums=('68834c4ff84da0e60e2fa8ebe87e83ceb8e5f5ad407d706d3b0e88c6958a92e5')
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('4a099ae20c427179c0cf081f01d5366a554778480d89c2d77a033467e06e7c38')

build() {
[[ -d "build-${MSYSTEM}" ]] && rm -rf "build-${MSYSTEM}"
mkdir -p "${srcdir}/build-${MSYSTEM}"
cd "${srcdir}/build-${MSYSTEM}"

${MINGW_PREFIX}/bin/python.exe \
-m build \
--wheel \
--no-isolation \
--outdir . \
../sphinx_lv2_theme-${pkgver}
cp -r "${_pyname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
cd "${srcdir}/build-${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"

MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python.exe -m installer \
--prefix="${MINGW_PREFIX}" \
--destdir="${pkgdir}" *.whl
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl

install -vDm 644 ${srcdir}/sphinx_lv2_theme-${pkgver}/LICENSE -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/"
install -vDm 644 ${srcdir}/sphinx_lv2_theme-${pkgver}/{NEWS,README.md} -t "${pkgdir}${MINGW_PREFIX}/share/doc/${_realname}/"
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}

0 comments on commit 71bff36

Please sign in to comment.