diff options
author | Caleb Maclennan | 2020-02-28 10:35:09 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-02-28 10:36:08 +0300 |
commit | 4d908380a25af923cf2ababda9dc7d4350bf46c9 (patch) | |
tree | 43e0425cf41ee492c30a7fb322ad9f07aa57a4ee | |
parent | f4d7b97a263d8ab3805ba3c54b9d1ab1d78e8234 (diff) | |
download | aur-4d908380a25af923cf2ababda9dc7d4350bf46c9.tar.gz |
Patch Apache configuration file with correct python path
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = pagure pkgdesc = A git-centered forge based on python using pygit2 pkgver = 5.8.1 - pkgrel = 0.9 + pkgrel = 0.10 url = https://pagure.io/pagure install = pagure.install arch = any @@ -6,7 +6,7 @@ pkgname=pagure pkgver=5.8.1 -pkgrel=0.9 +pkgrel=0.1O pkgdesc="A git-centered forge based on python using pygit2" arch=("any") url="https://pagure.io/$pkgname" @@ -65,6 +65,8 @@ sha256sums=('5e150bad0a3f932d265cb59d46c8b6a532be0f757aab695a8c37df3f5f4db687' prepare() { cd "$pkgname-$pkgver" patch -p1 < "../${source[1]##*/}" + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + sed -i -e "s#/usr/lib/pythonX.Y/site-packages#$site_packages#" files/pagure.conf } build() { |