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:
parent
53fccc9222
commit
a5e6499a47
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user