111
111
rm $(TEMPINSTALL)$(LAZDIR)/units/$(TARGET)/nogui/*
113
113
# symlinks must be relative
114
# bug: http://bugs.freepascal.org/view.php?id=23186
114
115
ln -sf ../lib/lazarus/lazarus $(TEMPINSTALL)/usr/bin/lazarus-ide
115
116
ln -sf ../lib/lazarus/startlazarus $(TEMPINSTALL)/usr/bin/startlazarus
116
117
ln -sf ../lib/lazarus/lazbuild $(TEMPINSTALL)/usr/bin/lazbuild
118
119
# I believe these should be moved directly to /usr/bin/
120
# bug: http://bugs.freepascal.org/view.php?id=23186
119
121
mv $(TEMPINSTALL)$(LAZDIR)/tools/lazres $(TEMPINSTALL)/usr/bin/
120
122
mv $(TEMPINSTALL)$(LAZDIR)/tools/updatepofiles $(TEMPINSTALL)/usr/bin/
121
123
mv $(TEMPINSTALL)$(LAZDIR)/tools/lrstolfm $(TEMPINSTALL)/usr/bin/
123
125
# there exist 3 more man pages for the above in the lazarus sources already
126
# bug: http://bugs.freepascal.org/view.php?id=23186
124
127
cat $(ORIG)/install/man/man1/lazres.1 | gzip > $(TEMPINSTALL)/usr/share/man/man1/lazres.1.gz
125
128
cat $(ORIG)/install/man/man1/updatepofiles.1 | gzip > $(TEMPINSTALL)/usr/share/man/man1/updatepofiles.1.gz
126
129
cat $(ORIG)/install/man/man1/lrstolfm.1 | gzip > $(TEMPINSTALL)/usr/share/man/man1/lrstolfm.1.gz
128
131
# start menu item
132
# bug: http://bugs.freepascal.org/view.php?id=23186
129
133
mkdir -p $(TEMPINSTALL)/usr/share/applications
130
134
mkdir -p $(TEMPINSTALL)/usr/share/pixmaps
131
135
cp $(ORIG)/install/lazarus.desktop $(TEMPINSTALL)/usr/share/applications/
132
136
cp $(OTHER)/mime_icons/text-lazarus-project-information.png $(TEMPINSTALL)/usr/share/pixmaps/lazarus.png
134
# mime types and more modern looking mime icons
138
# mime types and mime icons
139
# bug: http://bugs.freepascal.org/view.php?id=23186
140
# note: I am also using different more modern icons,
141
# this is not yet part of any bug report.
135
142
mkdir -p $(TEMPINSTALL)/usr/share/mime/packages
136
143
mkdir -p $(TEMPINSTALL)/usr/share/icons/hicolor/48x48/mimetypes/
137
144
cp $(ORIG)/install/lazarus-mime.xml $(TEMPINSTALL)/usr/share/mime/packages/lazarus.xml
149
156
# we are perfectly happy if these directories exist and are empty.
150
157
# Lazarus has only few widgetsets for Linux, so I am creating
151
158
# only directories for those widgetsets that can actually be used.
159
# bug: http://bugs.freepascal.org/view.php?id=23186
153
161
# please fix this in make install
154
162
mkdir -p $(TEMPINSTALL)$(LAZDIR)/units/$(TARGET)/nogui