nano-syntax-highlighting: fix nanorc.sample (#5645)

Arch did generation wrong, and I didn't test it (sorry :( ). `find` returns relative path, which is
${lang}.nanorc, so seding is just simply putting `include ` in the beginning of each line
This commit is contained in:
Maksim Bondarenkov 2025-09-16 20:08:52 +03:00 committed by GitHub
parent 53fccc9222
commit a5e6499a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ pkgname=nano-syntax-highlighting
conflicts=(${pkgname}-git)
replaces=(${pkgname}-git)
pkgver=2025.07.01
pkgrel=1
pkgrel=2
pkgdesc="Nano editor syntax highlighting enhancements"
arch=('any')
depends=('nano')
@ -20,8 +20,8 @@ prepare() {
}
build() {
cd "${pkgname}-${pkgver}"
find *.nanorc -type f | sed "s@${srcdir}\/nanorc@include \/usr\/share\/${pkgname}@" > nanorc.sample
cd "${pkgname}-${pkgver}"
find *.nanorc -type f | sed "s@^@include /usr/share/${pkgname}/@" > nanorc.sample
}
package() {