2
# Parses command line options. Currently supported options are:
4
# DESTDIR Destination root directory
5
# WIDGET Widgetset the binary should be installed for
10
DESTDIR=*) DESTDIR=${arg#DESTDIR=};;
11
WIDGET=*) WIDGET=${arg#WIDGET=};;
24
if [ $ARCH = "x86_64" ]; then TDir="/usr/lib64/"
30
# "mkdir -p" is equivalent to ForceDirectories pascal function
33
mkdir -p $DESTDIR/usr/bin/
34
mkdir -p $DESTDIR/opt/appfiles/
35
mkdir -p $DESTDIR/opt/appfiles/liCreator
36
mkdir -p $DESTDIR/usr/share/applications
38
if [ "$WIDGET" == "qt4" ]; then
39
cp './build/qt4/licreator' $DESTDIR/opt/appfiles/liCreator/
41
cp './build/gtk2/licreator' $DESTDIR/opt/appfiles/liCreator/
44
cp './graphics/listaller_creator.png' $DESTDIR/opt/appfiles/liCreator/
45
cp "./liCreator/licreator.desktop" $DESTDIR"/usr/share/applications/"
49
ln -s /opt/appfiles/liCreator/licreator licreator
51
echo "Installation done. (liCreator)"