Andreas Radke pushed to branch main at Arch Linux / Packaging / Packages /
nano-syntax-highlighting
Commits:
126c9561 by Andreas Radke at 2024-09-17T14:51:55+02:00
upgpkg: 2022.11.02.r102.gbb94603-1; upstream was unmaintened for too long
-> switch to a well maintained for; fixes #1
- - - - -
3 changed files:
- .SRCINFO
- .nvchecker.toml
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,12 +1,13 @@
pkgbase = nano-syntax-highlighting
pkgdesc = Nano editor syntax highlighting enhancements
- pkgver = 2020.10.10
- pkgrel = 2
- url = https://github.com/scopatz/nanorc
+ pkgver = 2022.11.02.r102.gbb94603
+ pkgrel = 1
+ url = https://github.com/galenguyer/nano-syntax-highlighting
arch = any
- license = GPL3
+ license = GPL-3.0-or-later
+ makedepends = git
depends = nano
- source =
https://github.com/scopatz/nanorc/releases/download/2020.10.10/nanorc-2020.10.10.tar.gz
- sha256sums =
cd674e9eb230e4ba306b418c22d1891d93a3d2ffdf22234748d3398da50dfe64
+ source =
nano-syntax-highlighting::git+https://github.com/galenguyer/nano-syntax-highlighting.git#commit=bb94603d8652afdda3bbcb3fbb35d3fd4bc7165d
+ sha256sums = SKIP
pkgname = nano-syntax-highlighting
=====================================
.nvchecker.toml
=====================================
@@ -1,4 +1,4 @@
[nano-syntax-highlighting]
source = "github"
-github = "scopatz/nanorc"
+github = "galenguyer/nano-syntax-highlighting"
use_max_tag = true
=====================================
PKGBUILD
=====================================
@@ -2,26 +2,31 @@
# Contributor: American_Jesus <american.jesus.pt AT gmail DOT com>
pkgname=nano-syntax-highlighting
-pkgver=2020.10.10
-pkgrel=2
+pkgver=2022.11.02.r102.gbb94603
+_commit=bb94603d8652afdda3bbcb3fbb35d3fd4bc7165d # master 2024-08-03
+pkgrel=1
pkgdesc="Nano editor syntax highlighting enhancements"
-url="https://github.com/scopatz/nanorc"
-license=('GPL3')
+url="https://github.com/galenguyer/nano-syntax-highlighting"
+license=('GPL-3.0-or-later')
arch=('any')
depends=('nano')
-source=("https://github.com/scopatz/nanorc/releases/download/$pkgver/nanorc-$pkgver.tar.gz")
-sha256sums=('cd674e9eb230e4ba306b418c22d1891d93a3d2ffdf22234748d3398da50dfe64')
+makedepends=('git')
+source=(nano-syntax-highlighting::git+https://github.com/galenguyer/nano-syntax-highlighting.git#commit=$_commit)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
build() {
- cd "nanorc-$pkgver"
+ cd "$pkgname"
find *.nanorc -type f | sed "s@${srcdir}\/nanorc@include
\/usr\/share\/$pkgname@" > nanorc.sample
}
package() {
- cd "nanorc-$pkgver"
+ cd "$pkgname"
mkdir -p "$pkgdir/usr/share/$pkgname"
find . -name '*.nanorc' | xargs install -D -m644 -t
"$pkgdir/usr/share/$pkgname/"
install -D -m644 "nanorc.sample"
"$pkgdir/usr/share/$pkgname/nanorc.sample"
}
-
-
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nano-syntax-highlighting/-/commit/126c95619ca35a885e4869830a6347ad409af8b0
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nano-syntax-highlighting/-/commit/126c95619ca35a885e4869830a6347ad409af8b0
You're receiving this email because of your account on gitlab.archlinux.org.