[arch-commits] Commit in (neovide neovide/repos neovide/trunk neovide/trunk/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Thu Jun 30 18:56:50 UTC 2022


    Date: Thursday, June 30, 2022 @ 18:56:49
  Author: alerque
Revision: 1243127

Migrate neovide from AUR

Added:
  neovide/
  neovide/repos/
  neovide/trunk/
  neovide/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: neovide/trunk/PKGBUILD
===================================================================
--- neovide/trunk/PKGBUILD	                        (rev 0)
+++ neovide/trunk/PKGBUILD	2022-06-30 18:56:49 UTC (rev 1243127)
@@ -0,0 +1,50 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: peeweep <peeweep at 0x0 dot ee>
+
+pkgname=neovide
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='No Nonsense Neovim Client in Rust'
+arch=(x86_64)
+url="https://github.com/Kethku/$pkgname"
+license=(MIT)
+depends=(fontconfig
+         freetype2
+         libglvnd
+         neovim
+         sndio)
+makedepends=(cargo
+             cmake
+             gtk3
+             make
+             python
+             sdl2)
+optdepends=('vulkan-intel: vulkan support for intel')
+_archive=("$pkgname-$pkgver")
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('8206cbfbb9ece987a24051e0c834c205663d3263c7aa40ae0e5bcc0aba2e61cc')
+
+prepare() {
+	cd "$_archive"
+	sed -i \
+		-e '/^debug/s/true/false/' \
+		-e '/^incremental/a opt-level = 3' \
+		Cargo.toml
+	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+	cd "$_archive"
+	cargo build --frozen --release --all-features
+}
+
+package() {
+	cd "$_archive"
+	install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
+	install -Dm0644 -t "$pkgdir/usr/share/applications/" "assets/$pkgname.desktop"
+	for px in 16 32 48 256; do
+		install -Dm0644 "assets/$pkgname-${px}x${px}.png" \
+			"$pkgdir/usr/share/icons/hicolor/${px}x${px}/apps/$pkgname.png"
+	done
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list