summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78468af880a713ac43eb7f39b3d6e0962b4d2768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: mfw <espadonne@outlook.com>

pkgname=facsimile
pkgver=0.7.9
pkgrel=1
pkgdesc='Terminal text editor written in Fortran with VSCode-style keybindings'
arch=('x86_64' 'i686' 'aarch64')
url='https://github.com/FortranGoingOnForty/facsimile'
license=('MIT')
depends=('glibc')
makedepends=('gcc-fortran' 'fortran-fpm')
source=("git+https://github.com/FortranGoingOnForty/facsimile.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cd facsimile
    fpm build --profile release
}

package() {
    cd facsimile

    # Find the built binary
    fac_binary=$(find build -name "fac" -type f)

    # Install main binary
    install -Dm755 "$fac_binary" "$pkgdir/usr/bin/fac"

    # Create symlink for convenience
    ln -s fac "$pkgdir/usr/bin/facsimile"

    # Install documentation
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}