diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | nvui.desktop | 25 | ||||
-rw-r--r-- | nvui.sh | 2 |
4 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..23845f743353 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = nvui-git + pkgdesc = A modern frontend for Neovim + pkgver = v0.1.4.v2.r6.g87f61c0 + pkgrel = 1 + url = https://github.com/rohit-px2/nvui + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + makedepends = ninja + makedepends = catch2 + depends = boost + depends = fmt + depends = msgpack-cxx + depends = qt5-base + depends = qt5-svg + depends = hicolor-icon-theme + source = nvui-git::git+https://github.com/rohit-px2/nvui.git + source = nvui.desktop + source = nvui.sh + sha256sums = SKIP + sha256sums = 529e087f9ea5d212c05e1cfd7da51f5e5718acc186a1925f937707c641ebd509 + sha256sums = 987f46b07c32efbb5f1ef4783204d15b6d8be32833cb7732d4752eb4fb5b9a08 + +pkgname = nvui-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..73a5cda9882d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Avimitin <avimitin at gmail dot com> +# Credit: Copy from https://aur.archlinux.org/packages/nvui and made some fixes + +pkgname=nvui-git +pkgver=v0.1.4.v2.r6.g87f61c0 +pkgrel=1 +pkgdesc='A modern frontend for Neovim' +arch=('x86_64') +url='https://github.com/rohit-px2/nvui' +license=('MIT') +depends=( + 'boost' + 'fmt' + 'msgpack-cxx' + 'qt5-base' + 'qt5-svg' + 'hicolor-icon-theme' +) +makedepends=( + 'git' + 'cmake' + 'ninja' + 'catch2' +) +source=( + "$pkgname::git+$url.git" + nvui.desktop + nvui.sh +) +sha256sums=( + 'SKIP' + '529e087f9ea5d212c05e1cfd7da51f5e5718acc186a1925f937707c641ebd509' + '987f46b07c32efbb5f1ef4783204d15b6d8be32833cb7732d4752eb4fb5b9a08' +) + +pkgver() { + cd "$pkgname" + git describe --long --tag | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$pkgname" + cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -G Ninja + cmake --build build --target nvui --config Release +} + +package() { + # https://github.com/rohit-px2/nvui/blob/main/BUILDING.md#packaging-executable + install -Dm755 nvui.sh "$pkgdir/usr/bin/$pkgname" + install -Dm644 nvui.desktop -t "$pkgdir/usr/share/applications" + cd "$pkgname" + find assets vim -type f -exec install -Dm 644 "{}" "${pkgdir}/opt/$pkgname/{}" \; + install -Dm755 build/nvui -t "$pkgdir/opt/$pkgname/bin" + install -Dm644 assets/appicon.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} diff --git a/nvui.desktop b/nvui.desktop new file mode 100644 index 000000000000..1898ba7d57ce --- /dev/null +++ b/nvui.desktop @@ -0,0 +1,25 @@ +[Desktop Entry] +Name=NVUI +GenericName=Text Editor +GenericName[de]=Texteditor +GenericName[fr]=Éditeur de texte +GenericName[ru]=Текстовый редактор +GenericName[sr]=Едитор текст +GenericName[tr]=Metin Düzenleyici +GenericName[zh_CN]=文本编辑器 +Comment=A modern frontend for Neovim +Comment[zh_CN]=一个现代化的 Neovim 前端 +TryExec=nvui +Exec=nvui %F +Type=Application +Keywords=Text;editor; +Keywords[fr]=Texte;éditeur; +Keywords[ru]=текст;текстовый редактор; +Keywords[sr]=Текст;едитор; +Keywords[tr]=Metin;düzenleyici; +Keywords[zh_CN]=文本;编辑器; +Icon=nvui +Terminal=false +StartupNotify=true +Categories=Utility;TextEditor; +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; diff --git a/nvui.sh b/nvui.sh new file mode 100644 index 000000000000..b5348a56281c --- /dev/null +++ b/nvui.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/opt/nvui/bin/nvui "$@" |