summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorUniversebenzene2021-03-22 03:37:25 +0800
committerUniversebenzene2021-03-22 03:37:25 +0800
commit7a2b1288278ee561d726c4e2d74f574c061bd29f (patch)
tree76774d48c857ad937851c541df78f5b975a7bba9 /PKGBUILD
parent55121f44aceb2512dd70e8320dadbe5cb0478872 (diff)
downloadaur-7a2b1288278ee561d726c4e2d74f574c061bd29f.tar.gz
Update to version 1.2.22
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 7 insertions, 29 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b9f4036e479..5c62c4cbef6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,51 +1,29 @@
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-sunpy-sphinx-theme
_pyname=${pkgbase#python-}
-pkgname=("python-${_pyname}" "python2-${_pyname}")
-pkgver=1.2.21
+pkgname=("python-${_pyname}")
+pkgver=1.2.22
pkgrel=1
pkgdesc="The sphinx theme for the SunPy website and documentation"
arch=('i686' 'x86_64')
url="https://github.com/sunpy/sunpy-sphinx-theme"
license=('BSD')
-makedepends=('python-setuptools-scm' 'python2-setuptools-scm')
-checkdepends=('python-pytest' 'python-sphinx' 'python2-sphinx' 'python-sphinx-bootstrap-theme' 'python2-sphinx-bootstrap-theme')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest' 'python-sphinx' 'python-sphinx-bootstrap-theme')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
-md5sums=('5ce92d0ddff9d18940ee0eae98a84076')
-
-prepare() {
- cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
-}
+md5sums=('e8371f408035d0acedabd7784997efea')
build() {
- msg "Building Python2"
- cd ${srcdir}/${_pyname}-${pkgver}-py2
- python2 setup.py build
-
- msg "Building Python3"
cd ${srcdir}/${_pyname}-${pkgver}
+
python setup.py build
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
- msg "Checking Python3"
+
python setup.py test
# pytest
-
- msg "Checking Python2"
- cd ${srcdir}/${_pyname}-${pkgver}-py2
- python2 setup.py test
-# pytest2
-}
-
-package_python2-sunpy-sphinx-theme() {
- depends=('python2-sphinx' 'python2-sphinx-bootstrap-theme')
- cd ${srcdir}/${_pyname}-${pkgver}-py2
-
- install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}
package_python-sunpy-sphinx-theme() {