tui-scripts/create_deb_package.sh

24 lines
597 B
Bash
Executable File

mkdir -p gui-scripts_$(cat VERSION)-1/usr/local/bin
mkdir -p gui-scripts_$(cat VERSION)-1/DEBIAN
cat > gui-scripts_$(cat VERSION)-1/DEBIAN/control << EOL
Package: gui-scripts
Version: $(cat VERSION)-1
Section: base
Priority: optional
Architecture: amd64
Depends: fzf, dialog (>= 1.3), xdotool, x11-xkb-utils
Maintainer: Konstantin Shutkin <digitalstudium001@gmail.com>
Description: GUI scripts
GUI scripts for popular cli tools, based on dialog and fzf
EOL
for script in a s g r; do
cp $script gui-scripts_$(cat VERSION)-1/usr/local/bin
done
dpkg-deb --build gui-scripts_$(cat VERSION)-1