add: neovide (#664)

* add: neovide

* debug pkg

Signed-off-by: madomado <wboy111@outlook.com>

* files

Signed-off-by: madomado <wboy111@outlook.com>

* Update neovide.spec

Signed-off-by: madomado <wboy111@outlook.com>

* Update neovide.spec

Signed-off-by: madomado <wboy111@outlook.com>

* arch

Signed-off-by: madomado <wboy111@outlook.com>

* Update neovide.spec

Signed-off-by: madomado <wboy111@outlook.com>

---------

Signed-off-by: madomado <wboy111@outlook.com>
This commit is contained in:
madomado
2023-07-30 11:33:06 +08:00
committed by GitHub
parent b87c434c10
commit 9fa9f5ae5f
3 changed files with 52 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "neovide.spec"
}
}
+45
View File
@@ -0,0 +1,45 @@
%define debug_package %nil
Name: neovide
Version: 0.10.4
Release: 1%?dist
Summary: No Nonsense Neovim Client in Rust
License: MIT
URL: https://neovide.dev/
Source0: https://github.com/neovide/neovide/archive/refs/tags/%version.tar.gz
Requires: neovim fontconfig freetype libglvnd
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24 cmake gtk3 python3 SDL2
BuildRequires: fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel
ExclusiveArch: x86_64
%description
This is a simple graphical user interface for Neovim.
Where possible there are some graphical improvements,
but functionally it should act like the terminal UI.
%prep
%autosetup
%cargo_prep_online
%build
%cargo_build
%install
%cargo_install
install -Dm755 -t %buildroot%_bindir target/release/%name
install -Dm644 -t %buildroot%_datadir/applications/ assets/%name.desktop
for px in 16 32 48 256; do
install -Dm644 assets/%name-${px}x${px}.png %buildroot%_datadir/icons/hicolor/${px}x${px}/apps/%name.png
done
%files
%doc README.md
%license LICENSE
%_bindir/%name
%_datadir/icons/hicolor/*/apps/%name.png
%_datadir/applications/%name.desktop
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("neovide/neovide"));