Package Details: comic-dl 2019.05.26-4

Git Clone URL: https://aur.archlinux.org/comic-dl.git (read-only, click to copy)
Package Base: comic-dl
Description: Comic-dl is a command line tool to download Comics and Manga from various Manga and Comic sites easily.
Upstream URL: https://github.com/Xonshiz/comic-dl
Licenses: MIT
Submitter: BrainDamage
Maintainer: None
Last Packager: BrainDamage
Votes: 0
Popularity: 0.000000
First Submitted: 2019-10-12 02:28
Last Updated: 2019-11-14 17:53

Latest Comments

qubidt commented on 2020-12-20 11:29

The /usr/bin/comic-dl script created by the PKGBUILD breaks arguments before passing it to the python script (and also unnecessarily depends on bash). Fix:

diff --git a/PKGBUILD b/PKGBUILD
index edd56d1..6d59f52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,8 @@ source=("https://github.com/Xonshiz/comic-dl/archive/$pkgver.tar.gz")
 prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    sed --in-place s/"'comic_dl.sites'"/"'comic_dl.sites', 'comic_dl.readcomiconline'"/ setup.py
-   printf '%s\n' '#!/bin/env bash' >> comic-dl
-   printf 'python %s/comic_dl/__main__.py $*' "$(python -c 'import site; print(site.getsitepackages()[0])')" >> comic-dl
+   printf '%s\n' '#!/bin/sh' >> comic-dl
+   printf 'python %s/comic_dl/__main__.py "$@"' "$(python -c 'import site; print(site.getsitepackages()[0])')" >> comic-dl
    chmod +x comic-dl
 }