#!/bin/sh

mkdir -p /usr/local/share/ulbsd/i18n

cd libpcbsd/utils
qmake-qt5
make install clean
cd ../..

cd pc-fwmanager
qmake-qt5
make install clean
lrelease-qt5 pc-fwmanager.pro
cp i18n/*.qm /usr/local/share/ulbsd/i18n/
cp reset-firewall /usr/local/share/ulbsd/scripts/
chmod +x /usr/local/share/ulbsd/scripts/reset-firewall
cd ..

cd pc-servicemanager
qmake-qt5
make install clean
lrelease-qt5 pc-servicemanager.pro
cp i18n/*.qm /usr/local/share/ulbsd/i18n/
cd ..

cd pc-soundconfig
qmake-qt5
make install clean
lrelease-qt5 pc-soundconfig.pro
cp i18n/*.qm /usr/local/share/ulbsd/i18n/
cd ..

cd qsudo
qmake-qt5
make install clean
lrelease-qt5 qsudo.pro
cp i18n/*.qm /usr/local/share/ulbsd/i18n/
cd ..
