mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 00:38:10 +02:00
make deb: Fixed desktop and menu entry files. Fixed broken alternative removal on package removal.
git-svn-id: trunk@28580 -
This commit is contained in:
parent
1391cd2108
commit
d25f5c29df
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -2457,8 +2457,9 @@ debian/lazarus-ide-gtk2.postinst.in svneol=native#text/plain
|
||||
debian/lazarus-ide-gtk2.prerm.in svneol=native#text/plain
|
||||
debian/lazarus-ide.install.in svneol=native#text/plain
|
||||
debian/lazarus-ide.links.in svneol=native#text/plain
|
||||
debian/lazarus-ide.menu svneol=native#text/plain
|
||||
debian/lazarus-ide.menu.in svneol=native#text/plain
|
||||
debian/lazarus-ide.postinst.in svneol=native#text/plain
|
||||
debian/lazarus-ide.prerm.in svneol=native#text/plain
|
||||
debian/lazarus-src.install.in svneol=native#text/plain
|
||||
debian/lcl-gtk2.install.in svneol=native#text/plain
|
||||
debian/lcl-nogui.install.in svneol=native#text/plain
|
||||
|
2
debian/lazarus-ide-gtk2.prerm.in
vendored
2
debian/lazarus-ide-gtk2.prerm.in
vendored
@ -5,7 +5,7 @@ set -e
|
||||
LAZARUS_DIR=/usr/lib/lazarus/${VERSION}
|
||||
|
||||
# Remove alternatives
|
||||
update-alternatives --remove lazarus ${LAZARUS_DIR}/lazarus-gtk2
|
||||
update-alternatives --remove lazarus-${VERSION} ${LAZARUS_DIR}/lazarus-gtk2
|
||||
|
||||
# Debhelper code
|
||||
#DEBHELPER#
|
||||
|
6
debian/lazarus-ide.menu
vendored
6
debian/lazarus-ide.menu
vendored
@ -1,6 +0,0 @@
|
||||
?package(lazarus-ide):needs="X11"\
|
||||
title="Lazarus IDE"\
|
||||
section="Applications/Programming"\
|
||||
hints="Programming,Delphi"\
|
||||
icon="/usr/share/pixmaps/lazarus.xpm"\
|
||||
command="/usr/bin/lazarus-ide"
|
6
debian/lazarus-ide.menu.in
vendored
Normal file
6
debian/lazarus-ide.menu.in
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
?package(lazarus-ide${PACKAGESUFFIX}):needs="X11"\
|
||||
title="Lazarus IDE"\
|
||||
section="Applications/Programming"\
|
||||
hints="Programming,Delphi"\
|
||||
icon="/usr/share/pixmaps/lazarus-${VERSION}.xpm"\
|
||||
command="/usr/bin/lazarus-ide-${VERSION}"
|
4
debian/lazarus-ide.postinst.in
vendored
4
debian/lazarus-ide.postinst.in
vendored
@ -6,7 +6,9 @@ LAZARUS_DIR=/usr/lib/lazarus/${VERSION}
|
||||
|
||||
# Add alternatives
|
||||
update-alternatives \
|
||||
--install /usr/share/pixmaps/lazarus.xpm lazarus.xpm /usr/share/pixmaps/lazarus-${VERSION}.xpm 20
|
||||
--install /usr/bin/lazarus-ide lazarus-ide ${LAZARUS_DIR}/startlazarus 20 \
|
||||
--slave /usr/bin/startlazarus startlazarus ${LAZARUS_DIR}/startlazarus \
|
||||
--slave /usr/share/pixmaps/lazarus.xpm lazarus.xpm /usr/share/pixmaps/lazarus-${VERSION}.xpm
|
||||
|
||||
# Debhelper code
|
||||
#DEBHELPER#
|
||||
|
11
debian/lazarus-ide.prerm.in
vendored
Normal file
11
debian/lazarus-ide.prerm.in
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
LAZARUS_DIR=/usr/lib/lazarus/${VERSION}
|
||||
|
||||
# Remove alternatives
|
||||
update-alternatives --remove lazarus-ide ${LAZARUS_DIR}/startlazarus
|
||||
|
||||
# Debhelper code
|
||||
#DEBHELPER#
|
3
debian/rules
vendored
3
debian/rules
vendored
@ -155,8 +155,7 @@ install-arch-stamp:
|
||||
install -d $(INSTALL_DIR)/usr/share/pixmaps
|
||||
install -d $(INSTALL_DIR)/usr/share/applications
|
||||
convert -geometry 32x32 $(CURDIR)/images/ide_icon48x48.png $(INSTALL_DIR)/usr/share/pixmaps/lazarus-${DEB_UPSTREAM_MAIN_VERSION}.xpm
|
||||
chmod 644 $(INSTALL_DIR)/usr/share/pixmaps/*.xpm
|
||||
install -m 644 $(CURDIR)/install/lazarus.desktop $(INSTALL_DIR)/usr/share/applications/lazarus-${DEB_UPSTREAM_MAIN_VERSION}.desktop
|
||||
sed -e 's/Lazarus.*/& (${DEB_UPSTREAM_MAIN_VERSION})/' -e 's/Exec=startlazarus/&-${DEB_UPSTREAM_MAIN_VERSION}/' $(CURDIR)/install/lazarus.desktop > $(INSTALL_DIR)/usr/share/applications/lazarus-${DEB_UPSTREAM_MAIN_VERSION}.desktop
|
||||
# Install man pages
|
||||
$(MAKE) -C install/man installman $(INSTALLOPTS) INSTALL_PREFIX=$(INSTALL_DIR)/usr/share
|
||||
for s in 1 2 3 4 5 6 7 8 9 ; do test -d ${INSTALL_DIR}/usr/share/man/man$${s} && for f in ${INSTALL_DIR}/usr/share/man/man$${s}/*.? ; do n=`basename $${f}` ; ${MV} $${f} `dirname $${f}`/$${n%%.*}-${DEB_UPSTREAM_MAIN_VERSION}."$${n#*.}" ; done ; done || true
|
||||
|
Loading…
Reference in New Issue
Block a user