Date: Thursday, June 30, 2022 @ 19:04:28
  Author: alerque
Revision: 1243129

archrelease: copy trunk to community-x86_64

Added:
  neovide/repos/community-x86_64/
  neovide/repos/community-x86_64/PKGBUILD
    (from rev 1243128, neovide/trunk/PKGBUILD)

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

Copied: neovide/repos/community-x86_64/PKGBUILD (from rev 1243128, 
neovide/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-06-30 19:04:28 UTC (rev 1243129)
@@ -0,0 +1,51 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# 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"
+       export CFLAGS="-fcommon -fPIE"
+       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
+}

Reply via email to