diff options
author | Matthew Gamble | 2021-10-16 16:35:19 +1100 |
---|---|---|
committer | Matthew Gamble | 2021-10-16 16:35:19 +1100 |
commit | 61a459f9d01bde375157da17ef802b6f00c5623f (patch) | |
tree | f5615bd675cc3334bd1b50c26609d01752678508 | |
parent | 44d3b3463fadc324381976760b03bfa099c333b7 (diff) | |
download | aur-61a459f9d01bde375157da17ef802b6f00c5623f.tar.gz |
Fix build again
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = python-tatsu pkgdesc = TatSu takes a grammar in a variation of EBNF as input, and outputs a memoizing PEG/Packrat parser in Python. pkgver = 5.6.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/neogeny/TatSu arch = any license = BSD @@ -4,7 +4,7 @@ pkgname=python-tatsu pkgver=5.6.1 -pkgrel=2 +pkgrel=3 pkgdesc="TatSu takes a grammar in a variation of EBNF as input, and outputs a memoizing PEG/Packrat parser in Python." arch=("any") url="https://github.com/neogeny/TatSu" @@ -26,7 +26,12 @@ build() { package() { cd "TatSu-${pkgver}" + local _site_packages=$(python -c "import site; print(site.getsitepackages()[0], end='')") + PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + rm -r "${pkgdir}${_site_packages}/test" + chmod -R o+r "${pkgdir}${_site_packages}/"*.egg-info + install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-tatsu/LICENSE.txt" install -Dm644 README.rst "${pkgdir}/usr/share/doc/python-tatsu/README.rst" install -Dm644 CHANGELOG.rst "${pkgdir}/usr/share/doc/python-tatsu/CHANGELOG.rst" |