#!/bin/bash

mkdir -p install/DEBIAN/
file="install/DEBIAN/control"

>$file
echo "Package: PDF4QT" >>$file
echo "Version: ${PDF4QT_VERSION}" >>$file
echo "Section: base" >>$file
echo "Priority: optional" >>$file
echo "Architecture: amd64" >>$file
echo "Depends: libqt6gui6, libqt6xml6, libqt6svg6, libqt6openglwidgets6, libtbb12,  libqt6printsupport6, libqt6texttospeech6, qt6-speech-speechd-plugin, qt6-speech-flite-plugin">>$file
echo "Maintainer: Jakub Melka" >>$file
echo "Description: Unleash the power of PDF4QT: Your go-to open source PDF editor powered by the Qt framework. With a robust C++ library, intuitive PDF viewing/editing applications, and a handy command-line tool, PDF4QT streamlines your PDF interactions. Try it today." >>$file
echo "Homepage: https://jakubmelka.github.io/" >>$file
echo "Vcs-Browser: https://github.com/JakubMelka/PDF4QT" >>$file


dpkg-deb --build install

mv install.deb PDF4QT-${PDF4QT_VERSION}.deb






