updates
This commit is contained in:
1 parent
77db1cd3df
commit
402abb10c0
7 files changed
+64
-38
No files matched your search
+16
-11
@@ -1,24 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
name='nano'
|
||||
release='2'
|
||||
version='7.2'
|
||||
release='3'
|
||||
version='8.0'
|
||||
url='https://www.nano-editor.org/download.php'
|
||||
description='Pico editor clone with enhancements'
|
||||
email='parduscix@yandex.ru'
|
||||
maintainer='sulincix'
|
||||
license=('GPLv3')
|
||||
source=("https://www.nano-editor.org/dist/v7/nano-$version.tar.xz"
|
||||
"https://github.com/scopatz/nanorc/archive/refs/tags/2020.10.10.tar.gz"
|
||||
_commit="ff189e2baa8d89f44b5f58ea7da7aac04ee4ad8b"
|
||||
source=("https://www.nano-editor.org/dist/v8/nano-$version.tar.xz"
|
||||
"https://github.com/galenguyer/nano-syntax-highlighting/archive/${_commit}.zip"
|
||||
"nanorc"
|
||||
"nano.desktop"
|
||||
"icon.svg")
|
||||
depends=(file zlib ncurses bzip2)
|
||||
makedepends=()
|
||||
md5sums=('13742c686c6ddb0b7b294634f0c13cec'
|
||||
'fef2d5f43ac31ea0cad2cd7aed0d8255'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
sha256sums=('c17f43fc0e37336b33ee50a209c701d5beb808adc2d9f089ca831b40539c9ac4'
|
||||
'9e836760f61473a7a6ae28ac5e10b8d5b26f0415d1bd0c85d56d9b09e27a9fe1'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
)
|
||||
uses=(nanorc)
|
||||
arch=('x86_64')
|
||||
group=(app.editor)
|
||||
@@ -43,9 +45,12 @@ package(){
|
||||
mkdir -p ${DESTDIR}/etc
|
||||
install ../nanorc ${DESTDIR}/etc/nanorc
|
||||
# install extra nanorc files
|
||||
cd ../nanorc-2020.10.10
|
||||
cd ../nano-syntax-highlighting-${_commit}
|
||||
for file in ./*.nanorc ; do
|
||||
if [[ ! -f ${DESTDIR}/usr/share/nano/$file ]] ; then
|
||||
# black color is buggy with dark themes so replace with green
|
||||
sed -i "s/color black/ color green/g" $file
|
||||
sed -i "s/color brightblack/ color brightgreen/g" $file
|
||||
install $file ${DESTDIR}/usr/share/nano/
|
||||
fi
|
||||
done
|
||||
@@ -54,6 +59,6 @@ package(){
|
||||
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/scalable/apps/
|
||||
install ../nano.desktop ${DESTDIR}/usr/share/applications
|
||||
install ../icon.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps/nano.svg
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user