2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, sane-backends, qtbase, qtsvg, autoPatchelfHook }:
|
2018-04-27 08:30:57 +01:00
|
|
|
let
|
|
|
|
version = "4.3.89";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "masterpdfeditor-${version}";
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://get.code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz";
|
2018-04-27 08:30:57 +01:00
|
|
|
sha256 = "0k5bzlhqglskiiq86nmy18mnh5bf2w3mr9cq3pibrwn5pisxnxxc";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ sane-backends qtbase qtsvg ];
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
p=$out/opt/masterpdfeditor
|
|
|
|
mkdir -p $out/bin $p $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.png $out/share/pixmaps/
|
|
|
|
cp -v masterpdfeditor4.desktop $out/share/applications
|
|
|
|
|
|
|
|
cp -v masterpdfeditor4 $p/
|
|
|
|
ln -s $p/masterpdfeditor4 $out/bin/masterpdfeditor4
|
|
|
|
cp -v -r stamps templates lang fonts $p
|
|
|
|
|
|
|
|
install -D license.txt $out/share/$name/LICENSE
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Master PDF Editor";
|
|
|
|
homepage = "https://code-industry.net/free-pdf-editor/";
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
platforms = with platforms; [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai flokli ];
|
|
|
|
};
|
|
|
|
}
|