Package Details: nano-syntax-highlighting-git 2022.11.02.r2.ga9c6844-1

Git Clone URL: https://aur.archlinux.org/nano-syntax-highlighting-git.git (read-only, click to copy)
Package Base: nano-syntax-highlighting-git
Description: Improved nano syntax highlighting files
Upstream URL: https://github.com/galenguyer/nano-syntax-highlighting
Licenses: GPL3
Conflicts: nano-syntax-highlighting
Provides: nano-syntax-highlighting
Submitter: American_Jesus
Maintainer: galenguyer
Last Packager: galenguyer
Votes: 124
Popularity: 0.64
First Submitted: 2011-10-10 16:17 (UTC)
Last Updated: 2023-05-31 16:46 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

Aftermath commented on 2024-03-18 10:39 (UTC)

@finesse No, I was serious.

finesse commented on 2024-03-10 04:34 (UTC)

@Aftermath @davidhcefx

Not sure if Aftermath was being sarcastic about the 'completely right' comment, no offense intended. As Aftermath pointed out though, it should be part of makedepends as per https://wiki.archlinux.org/title/PKGBUILD#makedepends

depends=('nano')
makedepends=('git')

Aftermath commented on 2024-03-01 22:18 (UTC)

@davidhcefx

You are completely right… This Should be one of the make dependencies as instruction of package guidelines.

davidhcefx commented on 2024-03-01 18:37 (UTC) (edited on 2024-03-01 18:40 (UTC) by davidhcefx)

@galenguyer When I try to install this package with makepkg -s, I got the following error message:

[david@a3a98d446a71 nano-syntax-highlighting-git]$ makepkg -s
==> ERROR: Cannot find the git package needed to handle git sources.

The problem is that git does not come out of the box on Arch, so I suggest adding it to the dependency:

depends=('nano' 'git')

D3vil0p3r commented on 2023-06-23 15:36 (UTC)

Hey @galenguyer I strongly suggest to add a postinstall file in the package, so, when the package is installed, the tool is automatically applied to all file extensions without the user intervention. You can do this by creating a file called "nano-syntax-highlighting.install" as:

post_install() {
  cat << _EOF 

==> IMPORTANT!!!
==> To prevent overwriting your existing configuration, nanorc
==> was installed to /usr/share/nano-syntax-highlighting/nanorc.sample
==>
==> To install you should add the languages you want to your nano configuration file, system-wide or user-specific
==> system-wide: $ echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> /etc/nanorc
==> user-specific: $ echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> ~/.nanorc

_EOF

if grep -wq "include /usr/share/nano-syntax-highlighting/*.nanorc" /etc/nanorc; then 
    echo "nano-syntax-highlighting already enabled." 
else 
    echo "include /usr/share/nano-syntax-highlighting/*.nanorc" | tee -a "${pkgdir}/etc/nanorc"
fi
}

post_upgrade() {
  post_install $1
}

and adding to the PKGBUILD the line install=nano-syntax-highlighting.install. Let me know.

galenguyer commented on 2023-05-19 03:37 (UTC)

@WSDMatty adopted it! I'll find some time next week to see what housekeeping is needed and see if we can breathe some new life into the repo!

WSDMatty commented on 2023-05-19 03:17 (UTC)

@galenguyer

I've updated the source to point to your repository. Would you like to take over maintaining this package?

galenguyer commented on 2023-02-08 18:36 (UTC)

I've forked the original repository and merged in a bunch of the outstanding pull requests, as well as fixing some other issues. My fork is available at https://github.com/galenguyer/nano-syntax-highlighting. It'd be awesome if the PKGBUILD could be updated to use this source!

WSDMatty commented on 2019-10-19 03:57 (UTC)

Cleaned up PKGBUILD. Updated [package] to latest version

Got rid of custom variable.
Enclosed all variables in quotes.
Changed PKGVER function to use upstream versioning scheme

Throne3d commented on 2017-10-24 14:14 (UTC)

Isn't this a git package that installs direct from the source? (It looks like it *has* been updated since, but only to bump the package version, and it was flagged out of date a while ago but still installed from source, so… I don't think anything's changed?)