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

Morten Linderud foxboron at archlinux.org
Sun Dec 22 22:32:25 UTC 2019


    Date: Sunday, December 22, 2019 @ 22:32:25
  Author: foxboron
Revision: 538943

upgpkg: mopidy 3.0.1-1

Python3!

Modified:
  mopidy/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-22 22:16:37 UTC (rev 538942)
+++ PKGBUILD	2019-12-22 22:32:25 UTC (rev 538943)
@@ -3,48 +3,49 @@
 # Contributor: Alexandre Petitjean <alpetitjean at gmail dot com>
 
 pkgname=mopidy
-pkgver=2.3.1
+pkgver=3.0.1
 pkgrel=1
 pkgdesc="An extensible music server written in Python"
 arch=('any')
 url="https://www.mopidy.com"
 license=('APACHE')
-depends=('python2' 'python2-pykka' 'python2-setuptools' 'python2-requests' 'gstreamer'
-         'gst-python2' 'gst-plugins-good' 'gst-plugins-ugly' 'python2-tornado' 'gst-plugins-base')
-makedepends=('python2-sphinx' 'python2-sphinx_rtd_theme')
+depends=('python' 'python-pykka' 'python-setuptools' 'python-requests' 'gstreamer'
+         'gst-python2' 'gst-plugins-good' 'gst-plugins-ugly' 'python-tornado' 'gst-plugins-base')
+checkdepends=('python-gobject' 'python-pytest' 'python-responses')
+makedepends=('python-sphinx' 'python-sphinx_rtd_theme')
 backup=('etc/mopidy/mopidy.conf')
-source=("https://github.com/mopidy/mopidy/archive/v${pkgver}.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mopidy/mopidy/archive/v${pkgver}.tar.gz"
         'mopidy.conf'
         'logging.conf'
         'mopidy.sysusers')
-sha512sums=('8138482743c99c78008f2a6dcc23db1e91f522346e5d6f5f5216ede46977ace2b9475ca800ebb51f8d91d26dc2088eeb66d70107e6d6c8c37269fe4a903d236d'
+sha512sums=('79d5f8d879b73d71697320dea16f5eed931fd6da5fd1a1abd1179e703bc4ec171f11463709b9b1bfdc079f8f54b1fb52e0a3bf206bcb749acfd32665332cb715'
             'eb66e8e826640a939b1ba51569ab7fab041b8b5e8823ea2d5f05596faf1de8882fd8c1c32bdb92534e759243fb5ff741bda0d2ebb3282af542d1287c8c68b5ea'
             '0c438058500ab7559baae21b03b10e2b80b10c77776b240b2100da1f4c84ea8efe24dc7a38a95034e75605eaf5d21604d13e5b8c7358778c555ddb6372a49388'
             'ff6c9f0406dfc1cc01ac6edcc6bae429342437397321ab9205ca273a63b28611d08005a0a5dba639b5ae2157a4f03a1d58c2199f7dbc6965864685b4b71f0b6f')
 
-prepare() {
-  cd $pkgname-$pkgver
-  sed -e 's|, < 5||' -i setup.py
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+  python setup.py build_sphinx -b man
+  python setup.py build_sphinx -b html
 }
 
-build() {
+check() {
   cd ${pkgname}-${pkgver}
-
-  make -C docs SPHINXBUILD=sphinx-build2 man
-  make -C docs SPHINXBUILD=sphinx-build2 html
+  python setup.py test
 }
 
 package() {
   cd ${pkgname}-${pkgver}
-  python2 setup.py install --root="${pkgdir}/" --optimize=1
+  python setup.py install --root="${pkgdir}/" --optimize=1
 
   install -Dm755 extra/mopidyctl/mopidyctl "${pkgdir}/usr/bin/mopidyctl"
 
   install -dm755 "${pkgdir}/usr/share/doc/mopidy"
-  cp -r docs/_build/html "${pkgdir}/usr/share/doc/mopidy"
+  cp -r build/sphinx/html "${pkgdir}/usr/share/doc/mopidy"
 
   install -dm755 "${pkgdir}/usr/share/man/man1/"
-  gzip -c docs/_build/man/mopidy.1 > "${pkgdir}/usr/share/man/man1/mopidy.1.gz"
+  gzip -c build/sphinx/man/mopidy.1 > "${pkgdir}/usr/share/man/man1/mopidy.1.gz"
 
   install -dm755 "${pkgdir}/usr/share/man/man8/"
   gzip -c extra/mopidyctl/mopidyctl.8 > "${pkgdir}/usr/share/man/man8/mopidyctl.8.gz"


More information about the arch-commits mailing list