Skip to content

Commit

Permalink
masterpdfeditor: add .desktop file and LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli committed Nov 1, 2017
1 parent fbf1126 commit 8162e58
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkgs/applications/misc/masterpdfeditor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@
];
dontStrip = true;
installPhase = ''
mkdir -pv $out/bin
mkdir -p $out/bin $out/share/applications $out/share/pixmaps
substituteInPlace masterpdfeditor4.desktop \
--replace 'Exec=/opt/master-pdf-editor-4' "Exec=$out/bin" \
--replace 'Path=/opt/master-pdf-editor-4' "Path=$out/bin" \
--replace 'Icon=/opt/master-pdf-editor-4' "Icon=$out/share/pixmaps"
cp -v masterpdfeditor4 $out/bin/masterpdfeditor4
cp -v masterpdfeditor4.png $out/bin/masterpdfeditor4.png
cp -v masterpdfeditor4.png $out/share/pixmaps/
cp -v masterpdfeditor4.desktop $out/share/applications
cp -v -r stamps $out/bin/stamps
cp -v -r templates $out/bin/templates
cp -v -r lang $out/bin/lang
cp -v -r fonts $out/bin/fonts
install -D license.txt $out/share/$name/LICENSE
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $libPath \
$out/bin/masterpdfeditor4
Expand Down

0 comments on commit 8162e58

Please sign in to comment.