diff options
author | Cedric Girard | 2021-12-13 14:38:02 +0100 |
---|---|---|
committer | Cedric Girard | 2021-12-13 14:38:02 +0100 |
commit | 5d20803eed51c614dbdf365c28a946df75432ca1 (patch) | |
tree | 8a90e20bf0983ed3b71a3f0d50d1e1722930055b | |
parent | f377e4af885572c9a37aefabe68116dfb1c13527 (diff) | |
download | aur-5d20803eed51c614dbdf365c28a946df75432ca1.tar.gz |
upgpkg: autojump-git 22.5.3.r0.g06e082c-5
remove need to update PKGBUILD with new python version
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = autojump-git pkgdesc = A faster way to navigate your filesystem from the command line pkgver = 22.5.3.r0.g06e082c - pkgrel = 4 + pkgrel = 5 url = http://github.com/wting/autojump arch = any license = GPL3 @@ -13,4 +13,3 @@ pkgbase = autojump-git md5sums = SKIP pkgname = autojump-git - @@ -5,7 +5,7 @@ pkgname=autojump-git pkgver=22.5.3.r0.g06e082c -pkgrel=4 +pkgrel=5 pkgdesc="A faster way to navigate your filesystem from the command line" arch=(any) url="http://github.com/wting/autojump" @@ -18,7 +18,6 @@ source=('git+https://github.com/wting/autojump.git') md5sums=('SKIP') _gitname="autojump" -_python="python3.9" pkgver() { cd ${_gitname} @@ -41,8 +40,9 @@ package() { done # FS#60929 - install -d "${pkgdir}/usr/lib/$_python/site-packages" - mv ${pkgdir}/usr/bin/*.py "${pkgdir}/usr/lib/$_python/site-packages" + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "${pkgdir}/usr/lib/${site_packages}" + mv ${pkgdir}/usr/bin/*.py "${pkgdir}/usr/lib/${site_packages}" python -m compileall -d /usr/lib "${pkgdir}/usr/lib" python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib" |