Last active
April 14, 2017 06:45
-
-
Save JLuc/129e0cd75815c111632f5055aa271be5 to your computer and use it in GitHub Desktop.
flatpak recipe for scribus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As shared by jurf, 2017 03 01 | |
# | |
# you need to put this in the same directory to compile boost however (stole it from the KDE guys): https://paste.gnome.org/pu4pkxmrt | |
# first thing is called "net.scribus.ScribusDevel.json", the second "boost-configure" | |
# you can compile it with a | |
# flatpak-builder --force-clean --ccache --repo=repo scribus net.scribus.ScribusDevel.json | |
# (if you want ccache and a generic repo name) | |
# it's not downloading the qt5 sources and compiling them : it uses the KDE repo | |
# | |
# flatpak --user remote-add --no-gpg-verify --if-not-exists scribus-repo repo | |
# to add the repo to flatpak’s sources | |
# | |
# flatpak --user install scribus-repo net.scribus.ScribusDevel | |
# to install it, | |
# | |
# then you can run it with | |
# flatpak run net.scribus.ScribusDevel | |
# | |
# And to update it on a recompile or whatever a simple : | |
# flatpak --user update net.scribus.ScribusDevel | |
# | |
{ | |
"id": "net.scribus.ScribusDevel", | |
"branch": "master", | |
"runtime": "org.kde.Platform", | |
"sdk": "org.kde.Sdk", | |
"command": "scribus", | |
"rename-desktop-file": "scribus.desktop", | |
"rename-appdata-file": "scribus.appdata.xml", | |
"rename-icon": "scribus", | |
"tags": ["nightly"], | |
"desktop-file-name-prefix": "(Nightly) ", | |
"finish-args": ["--device=dri", "--share=ipc", "--socket=x11", "--socket=pulseaudio", "--filesystem=host" ], | |
"build-options": { | |
"cflags": "-O2 -g", | |
"cxxflags": "-O2 -g", | |
"env": { | |
"V": "1" | |
} | |
}, | |
"cleanup": ["/include", "/lib/pkgconfig", "/share/pkgconfig", "/lib/cmake", "*.la", "*.a"], | |
"modules": [ | |
{ | |
"name": "boost", | |
"config-opts": [], | |
"sources": [ | |
{ | |
"type": "archive", | |
"url": "https://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2", | |
"sha256": "686affff989ac2488f79a97b9479efb9f2abae035b5ed4d8226de6857933fd3b" | |
}, | |
{ | |
"type": "file", | |
"path": "boost-configure", | |
"dest-filename": "configure" | |
} | |
] | |
}, | |
{ | |
"name": "graphicsmagick", | |
"builddir": true, | |
"config-opts": ["--enable-shared", "--with-modules", "--with-perl", "--with-quantum-depth=16", "--with-threads"], | |
"sources": [ | |
{ | |
"type": "archive", | |
"url": "http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.24/GraphicsMagick-1.3.24.tar.gz", | |
"sha256":"5fa50af61e1c9841a24648d46f03a25a07919069950ffb97389724d20ef3c5d2" | |
} | |
] | |
}, | |
{ | |
"name": "gutenprint", | |
"disabled": true, | |
"config-opts": [], | |
"sources": [ | |
{ | |
"type": "archive", | |
"url": "http://downloads.sourceforge.net/gimp-print/gutenprint-5.2.12.tar.bz2", | |
"sha256": "a42489fd7d6f2e4320811754bb80b0cd845db6632b52f819fbc2b4b75057341b" | |
} | |
] | |
}, | |
{ | |
"name": "scribus", | |
"cmake": true, | |
"config-opts": [ "-DWANT_GRAPHICSMAGICK=1" ], | |
"post-install": [ "for i in 16x16 32x32 128x128 256x256 512x512 1024x1024; do install -Dm644 resources/iconsets/artwork/icon_${i}.png /app/share/icons/hicolor/${i}/apps/scribus.png; done" ], | |
"sources": [ | |
{ | |
"type": "git", | |
"url": "https://github.com/scribusproject/scribus.git" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, found this by chance while searching, just wanted to say there’s now a much better manifest here.