summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reuße2015-12-10 17:44:25 +0100
committerSebastian Reuße2015-12-10 17:44:25 +0100
commit1956450b1621663d08da04f8a48ec7bdb207fe0c (patch)
treeca3400c9473bb6590ed8c6ad48aaa8c1b1a93739
parent1119f691ea7b52577c20794ecd65404d60c77033 (diff)
downloadaur-1956450b1621663d08da04f8a48ec7bdb207fe0c.tar.gz
Fix Python byte-code location.
In the initial PKGBUILD, we were still using Python 2. We switched to Python 3, so that we now need to install __pycache__, instead of *.pyc.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d36d24d7ad4..35a548adaef 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Dec 10 09:25:53 UTC 2015
+# Thu Dec 10 16:44:25 UTC 2015
pkgbase = qfc-git
pkgdesc = Quick command-line file completion
pkgver = r36.736bd2c
diff --git a/PKGBUILD b/PKGBUILD
index 7f81c38bb87..0b3d070dfcf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,8 +44,9 @@ package() {
local _py_site_pkg="$(python -c 'import site; print(site.getsitepackages()[0])')"
local _py_dir="$pkgdir"/"$_py_site_pkg"/qfc
- install -dm755 "$_py_dir"
- install -m644 qfc/*.{py,pyc} "$_py_dir"
+ install -dm755 "$_py_dir"/{,__pycache__}
+ install -m644 qfc/*.py "$_py_dir"
+ install -m644 qfc/__pycache__/*.pyc "$_py_dir"/__pycache__
install -Dm755 bin/qfc "$_bin_dir"/qfc
install -Dm644 bin/qfc.sh "$_share_dir"/qfc.sh
install -Dm644 LICENSE "$_license_dir"/LICENSE