diff options
author | Erich Eckner <git@eckner.net> | 2020-02-24 10:13:49 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-24 10:23:52 +0100 |
commit | a69ddc3f4305ae18fc86a59ac1a26cc822b4d82c (patch) | |
tree | 092e07ec07b5c304a7497bd654d87cefec94fc1a /python-sphinx-better-theme | |
parent | 6103f77801fa1cbabd3f5fb00a2a51d6953ec908 (diff) | |
download | archlinuxewe-a69ddc3f4305ae18fc86a59ac1a26cc822b4d82c.tar.xz |
python-sphinx-better-theme: 0.13-2 -> 0.13-3
Diffstat (limited to 'python-sphinx-better-theme')
-rw-r--r-- | python-sphinx-better-theme/PKGBUILD | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/python-sphinx-better-theme/PKGBUILD b/python-sphinx-better-theme/PKGBUILD index d774e1d20..a4bae0ee2 100644 --- a/python-sphinx-better-theme/PKGBUILD +++ b/python-sphinx-better-theme/PKGBUILD @@ -1,76 +1,26 @@ # Maintainer: Erich Eckner <arch at eckner dot net> -pkgbase=python-sphinx-better-theme -pkgname=(python2-sphinx-better-theme python-sphinx-better-theme) +pkgname=python-sphinx-better-theme _pkgname=sphinx-better-theme pkgver=0.13 -pkgrel=2 +pkgrel=3 pkgdesc='theme for Sphinx that looks nice' arch=('any') url='https://sphinx-better-theme.readthedocs.io/' license=('custom') -_deppy2=( - 'python2>=2.7' - 'python2<2.8' -) -_deppy=( +depends=( 'python>=3.8' 'python<3.9' ) -_depends=() -_makedepends=() -_optdepends=() source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/irskep/${_pkgname}/archive/v${pkgver}.tar.gz") sha512sums=('ad9b52205b29a410c918f789e5b4d110ca6bb654da18203206504efef7f16228b93b764cf14d9cca1a89d1850a4327b51f1f6fe7219d5968b5e51e5cf1935f42') -makedepends=( - "${_deppy[@]}" - "${_deppy2[@]}" - "${_depends[@]}" - "${_depends[@]//python/python2}" - "${_makedepends[@]}" - "${_makedepends[@]//ython/ython2}" -) - -prepare() { - cp -r "${_pkgname}-${pkgver}" "py2-${_pkgname}-${pkgver}" - mv "${_pkgname}-${pkgver}" "py-${_pkgname}-${pkgver}" -} - build() { - cd "${srcdir}/py2-${_pkgname}-${pkgver}" - python2 setup.py build - - cd "${srcdir}/py-${_pkgname}-${pkgver}" + cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } -package_python2-sphinx-better-theme() { - depends=( - "${_deppy2[@]}" - "${_depends[@]//python/python2}" - ) - optdepends=( - "${_optdepends[@]//python/python2}" - ) - cd "${srcdir}/py2-${_pkgname}-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - find "${pkgdir}/usr/bin" -maxdepth 1 -type f -printf '%f\n' | \ - while read -r f; do - mv "${pkgdir}/usr/bin/${f}" "${pkgdir}/usr/bin/python2-${f}" - sed -i '1 s/python/python2/' "${pkgdir}/usr/bin/python2-${f}" - done -} - -package_python-sphinx-better-theme() { - depends=( - "${_deppy[@]}" - "${_depends[@]}" - ) - optdepends=( - "${_optdepends[@]}" - ) - cd "${srcdir}/py-${_pkgname}-${pkgver}" +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |