diff options
author | otreblan | 2020-10-01 16:38:45 -0500 |
---|---|---|
committer | otreblan | 2020-10-01 16:39:19 -0500 |
commit | 052f9c2b05d961dff29b4a956903746d5d6f4ab2 (patch) | |
tree | 0f1bf464b6d9d7bc43dce5df3b3f8a4290905a01 | |
parent | 0021da2394495c727a44099bddbe0cd1b460ce55 (diff) | |
download | aur-052f9c2b05d961dff29b4a956903746d5d6f4ab2.tar.gz |
Use compileall for pycache
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = giara-git pkgdesc = Reddit gtk client pkgver = r84.9b950c9 - pkgrel = 1 + pkgrel = 2 url = https://gitlab.gnome.org/GabMus/giara arch = any license = GPL3 @@ -2,7 +2,7 @@ pkgname=giara-git pkgver=r84.9b950c9 -pkgrel=1 +pkgrel=2 epoch= pkgdesc="Reddit gtk client" arch=('any') @@ -31,8 +31,7 @@ sha256sums=("SKIP") prepare() { # Generate pycache, if you ran giara as root this will conflict - find "$srcdir/$pkgname/${pkgname%-git}" -name "*.py" |\ - xargs python -c 'import py_compile, sys; py_compile.main(sys.argv[1:])' + python -m compileall "$srcdir/$pkgname/${pkgname%-git}" } pkgver() { |