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

David Runge dvzrv at gemini.archlinux.org
Mon Sep 20 20:44:17 UTC 2021


    Date: Monday, September 20, 2021 @ 20:44:17
  Author: dvzrv
Revision: 1019704

upgpkg: subdownloader 2.1.0-6: Rebuild to demote dependency.

Move python-pyqt5 to optdepends, as the application may be used only via CLI.
Simplify installation in package() to adhere to python package guidelines.
Remove unnecessary dependency on desktop-file-utils.
Move python-setuptools to makedepends as it is not required during runtime any longer.

Modified:
  subdownloader/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-20 20:44:07 UTC (rev 1019703)
+++ PKGBUILD	2021-09-20 20:44:17 UTC (rev 1019704)
@@ -6,18 +6,19 @@
 
 pkgname=subdownloader
 pkgver=2.1.0
-pkgrel=5
+pkgrel=6
 pkgdesc="Automatic download/upload of subtitles using fast hashing"
 arch=('any')
 url="https://github.com/subdownloader/subdownloader"
 license=('GPL3')
-depends=('desktop-file-utils' 'python-argcomplete' 'python-argparse'
-'python-commonmark' 'python-langdetect' 'python-progressbar' 'python-pyqt5'
-'python-pymediainfo' 'python-setuptools')
-makedepends=('python-sphinx' 'python-sphinx-argparse')
+depends=('python-argcomplete' 'python-argparse' 'python-commonmark'
+'python-langdetect' 'python-progressbar' 'python-pymediainfo')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx-argparse')
 checkdepends=('python-pytest')
+optdepends=('python-pyqt5: for the GUI')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
 sha512sums=('c61e5eb5c9f1cb452b42a2643e67d9c82550af3dd36940e2d7f4afb8229f8d394a0eafca662f5446c13230b6541dec25e6d33c486a3324d4a5e3c2d7b3a1faa8')
+b2sums=('b44ed7c898b63b750f55687783b29c6a0dc6a7c30bc4c65ec737c3498d2dfb77b6d7b11196a3e7179a6c4f727ab1a706be04bd4cedc8afa5a74e59738a467200')
 
 build(){
   cd "${pkgname}-${pkgver}"
@@ -27,14 +28,12 @@
 
 check() {
   cd "${pkgname}-${pkgver}"
-  py.test
+  pytest -v
 }
 
 package() {
   cd "${pkgname}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   # man page
   install -vDm 644 "build/sphinx/man/${pkgname}.1" \
     "${pkgdir}/usr/share/man/man1/${pkgname}.1"



More information about the arch-commits mailing list