[arch-commits] Commit in nano-syntax-highlighting/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Fri Oct 18 21:44:22 UTC 2019
Date: Friday, October 18, 2019 @ 21:44:22
Author: foxboron
Revision: 517187
upgpkg: nano-syntax-highlighting 2019.10.17-1
Added:
nano-syntax-highlighting/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-18 21:44:22 UTC (rev 517187)
@@ -0,0 +1,27 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: American_Jesus <american.jesus.pt AT gmail DOT com>
+
+pkgname=nano-syntax-highlighting
+pkgver=2019.10.17
+pkgrel=1
+pkgdesc="Nano editor syntax highlighting enhancements"
+url="https://github.com/scopatz/nanorc"
+license=('GPL3')
+arch=('any')
+depends=('nano')
+source=("https://github.com/scopatz/nanorc/releases/download/$pkgver/nanorc-$pkgver.tar.gz")
+md5sums=('7f3d6e76dd9959849e67c16e51090928')
+
+build() {
+ cd "nanorc-$pkgver"
+ find *.nanorc -type f | sed "s@${srcdir}\/nanorc at include \/usr\/share\/$pkgname@" > nanorc.sample
+}
+
+package() {
+ cd "nanorc-$pkgver"
+ 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"
+}
+
+
More information about the arch-commits
mailing list