Last active
July 3, 2026 17:34
-
-
Save ChrisTX/d97f497e897b3db340826caf239933bf to your computer and use it in GitHub Desktop.
fprettify PKGBUILD fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/PKGBUILD b/PKGBUILD | |
| index f85f999..efe24e3 100644 | |
| --- a/PKGBUILD | |
| +++ b/PKGBUILD | |
| @@ -1,19 +1,29 @@ | |
| +# shellcheck disable=SC2034,SC2154,SC2164 | |
| +# shellcheck shell=bash | |
| + | |
| pkgname=fprettify | |
| pkgver=0.3.7 | |
| pkgrel=2 | |
| pkgdesc="An auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python." | |
| arch=('x86_64' 'i686') | |
| -license=("GPLv3") | |
| +license=("GPL-3.0-or-later") | |
| depends=('python') | |
| +makedepends=(python-build python-installer python-wheel python-setuptools) | |
| source=("https://github.com/pseewald/${pkgname}/archive/v${pkgver}.tar.gz") | |
| sha256sums=('052da19a9080a6641d3202e10572cf3d978e6bcc0e7db29c1eb8ba724e89adc7') | |
| +prepare() { | |
| + cd "$pkgname"-"$pkgver" | |
| + # Fix USE_RE, see https://github.com/fortran-lang/fprettify/pull/207 | |
| + sed -i -e 's/SOL_STR + "USE/SOL_STR + r"USE/' fprettify/__init__.py | |
| +} | |
| + | |
| build() { | |
| - cd "$srcdir/$pkgname-$pkgver" | |
| - python setup.py build | |
| + cd "$pkgname"-"$pkgver" | |
| + python -m build --wheel --no-isolation | |
| } | |
| package() { | |
| - cd "$srcdir/$pkgname-$pkgver" | |
| - python setup.py install --root="$pkgdir/" --optimize=1 | |
| + cd "$pkgname"-"$pkgver" | |
| + python -m installer --destdir="$pkgdir" dist/*.whl | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment