| 1 | # Maintainer: mfw <espadonne@outlook.com> |
| 2 | |
| 3 | pkgname=fortsh |
| 4 | pkgver=1.7.0 |
| 5 | pkgrel=1 |
| 6 | pkgdesc='Fortran Shell - A modern shell implementation with AST-based parsing' |
| 7 | arch=('x86_64' 'aarch64') |
| 8 | url='https://github.com/FortranGoingOnForty/fortsh' |
| 9 | license=('GPL-3.0-only') |
| 10 | depends=('glibc') |
| 11 | makedepends=('gcc-fortran' 'make') |
| 12 | source=("git+https://github.com/FortranGoingOnForty/fortsh.git#tag=v$pkgver") |
| 13 | sha256sums=('SKIP') |
| 14 | |
| 15 | build() { |
| 16 | cd fortsh |
| 17 | make release |
| 18 | } |
| 19 | |
| 20 | check() { |
| 21 | cd fortsh |
| 22 | make test || true # Allow tests to fail gracefully if they require interactive input |
| 23 | } |
| 24 | |
| 25 | package() { |
| 26 | cd fortsh |
| 27 | |
| 28 | # Install main binary |
| 29 | install -Dm755 bin/fortsh "$pkgdir/usr/bin/fortsh" |
| 30 | |
| 31 | # Install documentation |
| 32 | install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" |
| 33 | } |