diff --git a/srcpkgs/nano-syntax-highlighting/template b/srcpkgs/nano-syntax-highlighting/template new file mode 100644 index 00000000000000..35b023894346c8 --- /dev/null +++ b/srcpkgs/nano-syntax-highlighting/template @@ -0,0 +1,19 @@ +# Template file for 'nano-syntax-highlighting' +pkgname=nano-syntax-highlighting +version=2025.07.01 +revision=1 +depends="nano" +short_desc="Nano editor syntax highlighting enhancements" +maintainer="masn " +license="GPL-3.0-or-later" +homepage="https://github.com/galenguyer/nano-syntax-highlighting" +distfiles="https://github.com/galenguyer/nano-syntax-highlighting/archive/refs/tags/${version}.tar.gz" +checksum=ae1138a436fb0c505ea0d309c70a5f43f9764a5deb9cedce71f8ba00a0a09e5c + +do_install() { + find *.nanorc -type f | sed "s@^@include /usr/share/${pkgname}/@" > nanorc.sample + vmkdir usr/share/${pkgname}/ + vcopy *.nanorc usr/share/${pkgname}/ + vcopy nanorc.sample usr/share/${pkgname}/ + vlicense license +}