Skip to content

Commit

Permalink
fix: nanorc.nanorc on nano-syntax-highlighting (#4959)
Browse files Browse the repository at this point in the history
  • Loading branch information
luau-project authored Oct 22, 2024
1 parent af42e55 commit 888bdc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions nano-syntax-highlighting/001-nanorc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Naur a/nanorc.nanorc b/nanorc.nanorc
--- a/nanorc.nanorc 2020-10-10 16:25:18.000000000 -0300
+++ b/nanorc.nanorc 2024-10-16 13:16:04.816910360 -0300
@@ -23,7 +23,7 @@
icolor brightmagenta " brightmagenta"
icolor brightcyan " brightcyan"
icolor brightwhite " brightwhite"
-icolor brightnormal " brightnormal"
+# icolor brightnormal " brightnormal"
icolor ,black ",black "
icolor ,red ",red "
icolor ,green ",green "
8 changes: 7 additions & 1 deletion nano-syntax-highlighting/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@ pkgname=nano-syntax-highlighting
conflicts=(${pkgname}-git)
replaces=(${pkgname}-git)
pkgver=2020.10.10
pkgrel=3
pkgrel=4
pkgdesc="Nano editor syntax highlighting enhancements"
arch=('any')
depends=('nano')
url="https://github.com/scopatz/nanorc"
license=('custom')
install=nano-syntax-highlighting.install
source=(https://github.com/scopatz/nanorc/releases/download/2020.10.10/nanorc-${pkgver}.tar.gz
'001-nanorc.patch'
'nanorc.sample')
sha256sums=('cd674e9eb230e4ba306b418c22d1891d93a3d2ffdf22234748d3398da50dfe64'
'd2eef37e950239e9c2d554fe058a1e06077513657bd19c3e4544dcb63b04b15d'
'173e76e537261fc3633954e4ad4f807576f7cf2fc82edfdae205a721021bc805')
noextract=(nanorc-${pkgver}.tar.gz)

prepare() {
[[ -d ${srcdir}/nanorc-${pkgver} ]] && rm -rf ${srcdir}/nanorc-${pkgver}
tar -xzf ${srcdir}/nanorc-${pkgver}.tar.gz -C $srcdir || true

cd ${srcdir}/nanorc-${pkgver}
# https://github.com/scopatz/nanorc/issues/410
patch -Np1 -i ${srcdir}/001-nanorc.patch
}

package() {
Expand Down

0 comments on commit 888bdc0

Please sign in to comment.