Skip to content

Commit

Permalink
Add dirs [ source, package ], and file [ README.md ]
Browse files Browse the repository at this point in the history
  • Loading branch information
baldeuniversel committed Apr 22, 2024
0 parents commit e9a9639
Show file tree
Hide file tree
Showing 28 changed files with 4,105 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# vimizer

### For the GNU/Linux system

The **vimizer** program allows to install, change the shell and configure
the `vim` and `zsh` programs on your Linux system (Use from the terminal) .


After installing the **vimizer** program, you can execute (from the terminal)
the command **vimizer --help** or **man vimizer** to get more information
about the **vimizer** program .

**Note** : Except the options `[ --version, --help ]` , no input parameter
is required to use this program .


**Hash-package** : **md5sum(52bade9b7e603e8ba35f52c5d48b8822)**
<br />
**Codename** : **sira**

<br />

---
#### *Info*
For any request, write to me via this email address :
[[email protected]](mailto:[email protected])
Binary file added package/deb/vimizer-1.0.4.deb
Binary file not shown.
103 changes: 103 additions & 0 deletions package/depends/installer-depends.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/usr/bin/bash


###
# Installer `vimizer` dependencies
###

set -uo pipefail



: '
@overview A function allowing to install dependencies
'
function installer
{

# Declaration variables
local counter=0



# Install `debianutils` if the package does not exist
if [[ ! ` dpkg-query -l debianutils ` ]]
then
# Update
apt-get update

# Installing
apt-get install debianutils --assume-yes

#
counter=$(( counter + 1 ))
fi


# Install `grep` if the package does not exist
if [[ ! ` which grep ` ]]
then

#
if [[ $counter -eq 0 ]]
then
# Update
apt-get update

#
counter=$(( counter + 1 ))
fi

# installing
apt-get install grep --assume-yes
fi



### Action to install dependencies -> start tag[i0]

# Declaration variables
declare -a tabDep=( "bash" "zsh" "coreutils" "systemd" "software-properties-common" "gawk" \
"awk" "vim-gtk3" "nodejs" "zsh-autosuggestions" "zsh-syntax-highlighting" "npm" "git" "p7zip-full" )


# Installing dependencies
for pkg in ${tabDep[@]}
do
#
if [[ $counter -eq 0 ]]
then
#
apt-get update

#
counter=$(( counter + 1 ))
fi


#
if [[ "$pkg" != "coreutils" ]] && [[ "$pkg" != "util-linux" ]] && [[ "$pkg" != "software-properties-common" ]] \
&& [[ "$pkg" != "zsh-autosuggestions" ]] && [[ "$pkg" != "vim-gtk3" ]] && [[ "$pkg" != "p7zip-full" ]] \
&& [[ "$pkg" != "zsh-syntax-highlighting" ]]

then
#
if [[ ! ` which $pkg ` ]]
then
#
apt-get install "$pkg" --assume-yes
fi
else
if [[ ! ( ` dpkg-query -l "$pkg" | grep -w -- "^ii" ` ) ]]
then
#
apt-get install "$pkg" --assume-yes
fi
fi
done

### Action to install dependencies -> end tag[i0]
}

# Call the function
installer
5 changes: 5 additions & 0 deletions package/info/info-pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
package: vimizer ,
version: 1.0.4 ,
pkg-md5sum: 52bade9b7e603e8ba35f52c5d48b8822
}
11 changes: 11 additions & 0 deletions package/info/readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* The <<vimizer>> program allows to install, change the shell and configure the
* vim and zsh program on your Linux system(Use from the terminal) .
*
* After installing the <<vimizer>> program, you can execute (from the terminal) the
* command `vimizer --help` or `man vimizer` to get more information
* about the <<vimizer>> program .
*
* Note : Except the options[ --version, --help ] , no input parameter is required to use this program .
*
*/
8 changes: 8 additions & 0 deletions source/vimizer/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: vimizer
Version: 1.0.4
Section: base
Priority: optional
Architecture: all
Maintainer: Baldé <[email protected]>
Depends: bash , zsh, coreutils , systemd , software-properties-common , gawk, awk, vim-gtk3, nodejs, zsh-autosuggestions, zsh-syntax-highlighting, npm, git, p7zip-full
Description: <vimizer> program allows to install and configure the vim and zsh program on your Linux system (Use from the terminal)
16 changes: 16 additions & 0 deletions source/vimizer/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/bash

#####
# postinst script
####

set -uo pipefail


# Just to print the name of the author
echo ""
echo ""
echo "~"

tput setaf 6; tput bold; echo "By Baldé ~" `tput sgr0` 2> /dev/null

17 changes: 17 additions & 0 deletions source/vimizer/DEBIAN/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/bash

#####
# postrm script
####

set -uo pipefail

# Declaration variables
meoListInstalledPkgsPure="/usr/lib/meo/library/info/list-installed-packages-pure"

if [[ -e "$meoListInstalledPkgsPure" ]]
then
#
sed -i "/vimizer/d" "$meoListInstalledPkgsPure" 2> /dev/null
fi

47 changes: 47 additions & 0 deletions source/vimizer/DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/bash

#
set -uo pipefail


#####
# Action before deploying the program
#####


# Declaration variables
getOS=""



### Action on the directory `/tmp` and others -> start tag[v0]

if [[ ! ( -e "/tmp" ) ]]
then

mkdir -p /tmp 2> /dev/null
chmod 777 /tmp 2> /dev/null

# Check the value of return of the last command
if [[ $? -ne 0 ]]
then
echo "~"
echo "This program is not compatible with your system ."
exit 1
fi

# Get kernel
getOS=` uname --operating-system `

#
if [[ $getOS != "GNU/Linux" ]]
then
echo "~"
echo "This program is not compatible with your system ."
exit 1
fi

fi

### Action on the directory `/tmp` and others -> end tag[v0]

17 changes: 17 additions & 0 deletions source/vimizer/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/bash

#####
# prerm script
####

set -uo pipefail

# Declaration variables
meoListInstalledPkgsPure="/usr/lib/meo/library/info/list-installed-packages-pure"

if [[ -e "$meoListInstalledPkgsPure" ]]
then
#
sed -i "/vimizer/d" "$meoListInstalledPkgsPure" 2> /dev/null
fi

Loading

0 comments on commit e9a9639

Please sign in to comment.