diff options
author | Nicolas F | 2019-11-20 17:16:09 +0100 |
---|---|---|
committer | Nicolas F | 2019-11-20 17:16:09 +0100 |
commit | 2e690106c10db97a1cb161b9911f70424dce2f1a (patch) | |
tree | 829bc05c3a9619af71cdf709995fccba1efd87d6 | |
parent | 8bcb51cca40b5f9e8939f2b5d7923f770767c123 (diff) | |
download | aur-cum.tar.gz |
Fix python site path
Thanks to RiCON for the patch.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = cum pkgdesc = Comic Updater, Mangafied pkgver = 0.9.1 - pkgrel = 3 + pkgrel = 4 url = https://github.com/Hamuko/cum arch = any license = Apache @@ -1,7 +1,7 @@ # Maintainer: Nicolas F. <aur@fratti.ch> pkgname=cum pkgver=0.9.1 -pkgrel=3 +pkgrel=4 pkgdesc="Comic Updater, Mangafied" arch=('any') url="https://github.com/Hamuko/cum" @@ -23,7 +23,8 @@ package() { python setup.py install --root="$pkgdir/" --optimize=1 rm "$pkgdir/usr/LICENSE" rm -r "$pkgdir/usr/tests/" - rm -r "$pkgdir/usr/lib/python3.7/site-packages/tests/" + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + rm -r "$pkgdir/$site_packages/tests/" install -Dm644 $srcdir/cumpletion.sh \ $pkgdir/usr/share/bash-completion/completions/cum |