31 lines
766 B
Bash
31 lines
766 B
Bash
sudo apt-get install nano
|
|
|
|
LATEST_URL=http://github.com/scopatz/nanorc.git
|
|
DIR_NAME=nano-syntax-highlighting/
|
|
install_path=/usr/share/${DIR_NAME}
|
|
mkdir -p $install_path
|
|
|
|
mkdir /tmp/nanorc-1.0
|
|
cd /tmp/nanorc-1.0
|
|
cat > ./description-pak << EOF
|
|
dot nanorc files that have improved definitions of syntax highlighting for various languages in the nano editor.
|
|
EOF
|
|
|
|
|
|
checkinstall -y --fstrans \
|
|
--pkgname=nanorc \
|
|
--pkgversion=1.0 \
|
|
--pkgrelease=1 \
|
|
--pkgarch=amd64 \
|
|
--pkggroup=admin \
|
|
--pkglicense=LICENSE \
|
|
--pkgsource=${LATEST_URL} \
|
|
--maintainer=cyteen@ring-zero.co.uk \
|
|
--requires=nano,unzip,wget \
|
|
-D \
|
|
git clone ${LATEST_URL} ${DIR_NAME}
|
|
cp ${DIR_NAME}/*.nanorc ${install_path} && \
|
|
echo "include ${install_path}/*.nanorc" >> /etc/nanorc
|
|
|
|
|