Github messages for voidlinux
 help / color / mirror / Atom feed
From: jaminW55 <jaminW55@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: NvChad
Date: Sat, 20 Jan 2024 07:17:50 +0100	[thread overview]
Message-ID: <20240120061750.8BB3B21BD9@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48296@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1746 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48296#issuecomment-1901779201

Comment:
I've actually almost got this one working. It builds without error, but then does not install. I am not entirely certain where I went wrong and I wonder if maybe I need to include something that changes terminal fonts to nerd fonts. 

It was required to force the extraction, as for whatever reason it would not extract. 

Please see the below template:

```
# Template file for 'nvchad'
pkgname=nvchad
version=2.0
revision=1
build_style=fetch
depends="neovim>=0.9.4 xclip"
hostmakedepends="tar"
short_desc="Neovim config written in Lua with a beautiful UI and fast startup"
maintainer="jaminW55 <jaminW55@gmail.me>"
license="GPL-3.0"
homepage="https://github.com/NvChad/NvChad"
distfiles="https://github.com/NvChad/NvChad/archive/refs/tags/v${version}.tar.gz"
checksum=78334f0bd8ec196a827c14ba9e33d2266833249a1916319d60c2ba7e20d6fba7

do_install() {
    # Force extraction of tarball
    tar -xzf "v${version}.tar.gz" -C "${wrksrc}"

    # Navigate to the directory where the source files are extracted
    cd "${wrksrc}/NvChad-${version}"

    # Create Necessary Directories
    vmkdir /usr/share/nvim/runtime
    vmkdir /usr/share/nvchad

    # Copying necessary files
    vcopy init.lua /usr/share/nvchad
    vcopy lua /usr/share/nvchad
    vcopy .stylua.toml /usr/share/nvchad

    # Copy the same files to nvim runtime directory
    vcopy init.lua /usr/share/nvim/runtime
    vcopy lua /usr/share/nvim/runtime
    vcopy .stylua.toml /usr/share/nvim/runtime
}

post_install() {
    echo "To update NvChad, run 'NvChadUpdate' inside neovim."
}
```



  parent reply	other threads:[~2024-01-20  6:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20  6:15 [ISSUE] " jaminW55
2024-01-20  6:16 ` jaminW55
2024-01-20  6:17 ` jaminW55 [this message]
2024-01-20  6:50 ` [ISSUE] [CLOSED] " classabbyamp
2024-01-20  6:50 ` classabbyamp
2024-01-20 16:22 ` jaminW55
2024-01-20 16:37 ` classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240120061750.8BB3B21BD9@inbox.vuxu.org \
    --to=jaminw55@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).