gnu: libreoffice: Add 'libreoffice' symlink.
* gnu/packages/libreoffice.scm (libreoffice)[arguments]: Adjust 'bin-install' phase to make 'libreoffice' symlink along with 'soffice'. Co-authored-by: ng0 <ng0@libertad.pw>
This commit is contained in:
		
							parent
							
								
									a9c61335c9
								
							
						
					
					
						commit
						cb72d34348
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
					@ -820,14 +820,16 @@ and to return information on pronunciations, meanings and synonyms.")
 | 
				
			||||||
                   (("./configure") "$(CONFIG_SHELL) ./configure" ))
 | 
					                   (("./configure") "$(CONFIG_SHELL) ./configure" ))
 | 
				
			||||||
                 #t)))
 | 
					                 #t)))
 | 
				
			||||||
           (add-after 'install 'bin-install
 | 
					           (add-after 'install 'bin-install
 | 
				
			||||||
             ;; Create a symlink bin/soffice to the executable script.
 | 
					             ;; Create 'soffice' and 'libreoffice' symlinks to the executable
 | 
				
			||||||
 | 
					             ;; script.
 | 
				
			||||||
             (lambda* (#:key outputs #:allow-other-keys)
 | 
					             (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
               (let* ((out (assoc-ref outputs "out"))
 | 
					               (let* ((out (assoc-ref outputs "out"))
 | 
				
			||||||
                      (bin (string-append out "/bin")))
 | 
					                      (bin (string-append out "/bin"))
 | 
				
			||||||
 | 
					                      (soffice (string-append
 | 
				
			||||||
 | 
					                                out "/lib/libreoffice/program/soffice")))
 | 
				
			||||||
                 (mkdir bin)
 | 
					                 (mkdir bin)
 | 
				
			||||||
                 (symlink
 | 
					                 (symlink soffice (string-append bin "/soffice"))
 | 
				
			||||||
                   (string-append out "/lib/libreoffice/program/soffice")
 | 
					                 (symlink soffice (string-append bin "/libreoffice")))
 | 
				
			||||||
                   (string-append bin "/soffice")))
 | 
					 | 
				
			||||||
               #t)))
 | 
					               #t)))
 | 
				
			||||||
       #:configure-flags
 | 
					       #:configure-flags
 | 
				
			||||||
        (list
 | 
					        (list
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue