summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorotreblan2020-10-01 16:38:45 -0500
committerotreblan2020-10-01 16:39:19 -0500
commit052f9c2b05d961dff29b4a956903746d5d6f4ab2 (patch)
tree0f1bf464b6d9d7bc43dce5df3b3f8a4290905a01
parent0021da2394495c727a44099bddbe0cd1b460ce55 (diff)
downloadaur-052f9c2b05d961dff29b4a956903746d5d6f4ab2.tar.gz
Use compileall for pycache
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 3 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9b0fcecfcb47..1d9b7f30b295 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index bd907bd12347..ec20a0137be9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {