summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--community/subdownloader/PKGBUILD17
-rw-r--r--community/subdownloader/subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch13
2 files changed, 22 insertions, 8 deletions
diff --git a/community/subdownloader/PKGBUILD b/community/subdownloader/PKGBUILD
index 4308c994..d5587d3b 100644
--- a/community/subdownloader/PKGBUILD
+++ b/community/subdownloader/PKGBUILD
@@ -1,10 +1,11 @@
-# Tests download a 64-bit Qt5 Python package from https://files.pythonhosted.org
+# Tests download a 64-bit Qt5 Python package from https://files.pythonhosted.org,
+# we can actually rely on the python-pyqt5 Archlinux package giving us that. :-)
# (see https://github.com/subdownloader/subdownloader/issues/30)
-# => disabling all tests for now
-eval "$(
- declare -f check | \
- sed '
- s/\(python setup.py test\)/#\1/
- '
-)"
+source+=(subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch)
+sha512sums+=('95f12cc3ffa474db00446adfb830935aaa2c626d5e15b78c94c7775ff048ed4871ea55fbc64cea7302007745beaaa02452ab3770ca6a41d9db36deddde0d901a')
+
+prepare( ) {
+ cd $pkgname-$pkgver
+ patch -Np1 < "$srcdir/subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch"
+}
diff --git a/community/subdownloader/subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch b/community/subdownloader/subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch
new file mode 100644
index 00000000..2ba2f340
--- /dev/null
+++ b/community/subdownloader/subdownloader-2.1.0rc4-setup-pyqt5-no-download.patch
@@ -0,0 +1,13 @@
+diff -rauN subdownloader-2.1.0rc4/setup.py subdownloader-2.1.0rc4-setup-pyqt5-no-download-patch/setup.py
+--- subdownloader-2.1.0rc4/setup.py 2018-03-22 02:01:17.000000000 +0100
++++ subdownloader-2.1.0rc4-setup-pyqt5-no-download-patch/setup.py 2018-05-24 15:41:59.570384198 +0200
+@@ -21,8 +21,7 @@
+ "argparse >= 1.3.0",
+ "argcomplete >= 1.7.0",
+ "langdetect >= 1.0.7",
+- "pymediainfo >= 2.1.6",
+- "PyQt5 >= 5.0.0",
++ "pymediainfo >= 2.1.6"
+ ]
+
+ setup_requires = [