blob: 1335b79cb2e968252de9c7f267af8125b1824f85 (
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
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Jared Johnson <jaredj@gmx.com>
pkgname=fvim
# get this with `git describe --tags` in fvim repo
_pkgtag="v0.3.549+ee4316c"
pkgver=$(echo "${_pkgtag}" | tail -c +2 | sed -e "s/\+/_/g")
_pkgver=$(echo "${pkgver}" | sed -e "s/_/-/g")
pkgrel=1
pkgdesc="Cross platform Neovim front-end UI, built with F# + Avalonia"
arch=('x86_64')
url="https://github.com/yatli/fvim"
license=('MIT')
groups=()
depends=('neovim' 'ttf-dejavu')
makedepends=('dotnet-host' 'dotnet-sdk' 'dotnet-runtime')
optdepends=('noto-fonts-cjk' 'noto-fonts-emoji' 'openbsd-netcat')
provides=('fvim')
conflicts=('fvim')
source=("https://github.com/yatli/fvim/archive/refs/tags/${_pkgtag}.tar.gz")
md5sums=('SKIP')
options=('staticlibs')
build() {
cd "${srcdir}/${pkgname}-${_pkgver}"
dotnet publish fvim.fsproj \
-f net6.0 \
-c Release \
-r linux-x64 \
--self-contained
}
package() {
cd "${srcdir}/${pkgname}-${_pkgver}"
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/${pkgname}"
install -dm755 "${pkgdir}/usr/share/applications"
install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps"
install -m755 lib/fvim-linux-launcher "${pkgdir}/usr/bin/fvim"
install Assets/fvim.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/fvim.png"
install lib/fvim.desktop "${pkgdir}/usr/share/applications/fvim.desktop"
cp -dpr bin/Release/net6.0/linux-x64/* "${pkgdir}/usr/share/fvim"
chmod 755 "${pkgdir}/usr/share/fvim/FVim"
chmod 755 "${pkgdir}/usr/bin/fvim"
}
|