[arch-commits] Commit in python-sphinx_rtd_theme/trunk (PKGBUILD)

Johannes Löthberg demize at archlinux.org
Wed Jan 1 21:38:57 UTC 2020


    Date: Wednesday, January 1, 2020 @ 21:38:56
  Author: demize
Revision: 545949

Drop python2

Modified:
  python-sphinx_rtd_theme/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++-----------------
 1 file changed, 3 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-01 21:35:58 UTC (rev 545948)
+++ PKGBUILD	2020-01-01 21:38:56 UTC (rev 545949)
@@ -2,10 +2,9 @@
 # Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
 # Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de>
 
-pkgbase=python-sphinx_rtd_theme
-pkgname=('python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme')
+pkgname=python-sphinx_rtd_theme
 pkgver=0.4.3
-pkgrel=3
+pkgrel=4
 
 pkgdesc="Python Sphinx Read The Docs Theme"
 url='https://github.com/rtfd/sphinx_rtd_theme/'
@@ -19,26 +18,13 @@
 sha256sums=('728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a')
 
 build() {
-  cp -r sphinx_rtd_theme-$pkgver sphinx_rtd_theme-$pkgver-py2
-
   cd sphinx_rtd_theme-$pkgver
   python setup.py build
-
-  cd "$srcdir"/sphinx_rtd_theme-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-sphinx_rtd_theme() {
+package() {
   cd sphinx_rtd_theme-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-sphinx_rtd_theme() {
-  cd sphinx_rtd_theme-${pkgver}-py2 
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-



More information about the arch-commits mailing list