The goal is to create a package that simply puts the shell of the script where I want.
1. . "deb", "". "deb" ( - ).
mkdir deb
2. deb, , script 1
mkdir -p ./deb/usr/local/bin
3. script
cp /path/to/my/script/myscript.sh ./deb/usr/local/bin/
4. "DEBIAN", .
mkdir -p ./deb/DEBIAN
5. .
touch ./deb/DEBIAN/control
6. .
Package: myPackagename (no spaces or underscores allowed)
Priority: optional
Section: misc
Maintainer: Maintainer Name
Architecture: all
Version: 1.0
Depends: package1, package2, .........
Description: short description here long description here (don't remove space at the beginning of line) (replace this with an empty line)
7.
Change ownership: sudo chown -R root:root ./deb
8. debian.
dpkg -b ./deb /my/output/destination/packagename.deb