summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authoryouri <youri@pkgsrc.org>2016-03-03 23:22:34 +0000
committeryouri <youri@pkgsrc.org>2016-03-03 23:22:34 +0000
commitda5dc25767602aed25258e227fd192023a64ee58 (patch)
treee039181068cb66bd96ad3c268307d9e1d75a0428 /misc
parentf4cf6d5462676140cd8d4f8450f3ffde4462f5d6 (diff)
downloadpkgsrc-da5dc25767602aed25258e227fd192023a64ee58.tar.gz
Add desktop files, making it easier for users to launch the programs.
Diffstat (limited to 'misc')
-rw-r--r--misc/libreoffice5-bin/Makefile6
-rw-r--r--misc/libreoffice5-bin/PLIST.proglinks8
2 files changed, 11 insertions, 3 deletions
diff --git a/misc/libreoffice5-bin/Makefile b/misc/libreoffice5-bin/Makefile
index 998b6e9ae7d..a101a0550fe 100644
--- a/misc/libreoffice5-bin/Makefile
+++ b/misc/libreoffice5-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2016/02/14 19:54:47 ryoon Exp $
+# $NetBSD: Makefile,v 1.3 2016/03/03 23:22:34 youri Exp $
DISTNAME= libreoffice5-bin # overridden below
PKGNAME= libreoffice5-bin-${OO_RELEASE}
@@ -65,7 +65,8 @@ MASTER_SITES= http://download.documentfoundation.org/libreoffice/stable/${OO_RE
.include "options.mk"
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/applications
+DESKTOP_FILESDIR= ${.CURDIR}/../../misc/libreoffice4-bin/files
do-install:
${UNIQ} ${RPM2PKG_PLIST} | \
@@ -76,6 +77,7 @@ do-install:
-e "s|@@OO_BASEVER@@|${OO_BASEVER}|g" \
< ${FILESDIR}/soffice > ${DESTDIR}${PREFIX}/bin/soffice
${CHMOD} +x ${DESTDIR}${PREFIX}/bin/soffice
+ ${INSTALL_DATA} ${DESKTOP_FILESDIR}/*.desktop ${DESTDIR}${PREFIX}/share/applications
.for i in sbase scalc sdraw simpress smath swriter
${LN} -sf ../opt/libreoffice${OO_BASEVER}/program/${i} ${DESTDIR}${PREFIX}/bin/${i}
.endfor
diff --git a/misc/libreoffice5-bin/PLIST.proglinks b/misc/libreoffice5-bin/PLIST.proglinks
index 4abb442d184..aaae4db7702 100644
--- a/misc/libreoffice5-bin/PLIST.proglinks
+++ b/misc/libreoffice5-bin/PLIST.proglinks
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.proglinks,v 1.1 2016/01/08 23:53:13 ryoon Exp $
+@comment $NetBSD: PLIST.proglinks,v 1.2 2016/03/03 23:22:34 youri Exp $
bin/sbase
bin/scalc
bin/sdraw
@@ -6,3 +6,9 @@ bin/simpress
bin/smath
bin/soffice
bin/swriter
+share/applications/base.desktop
+share/applications/calc.desktop
+share/applications/draw.desktop
+share/applications/impress.desktop
+share/applications/math.desktop
+share/applications/writer.desktop