forked from Mirrors/apostrophe
TexLive as flatpak extension
parent
b87a56ad22
commit
39a06b3f27
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
"id": "de.wolfvollprecht.UberWriter.Plugin.TexLive",
|
||||
"runtime": "de.wolfvollprecht.UberWriter",
|
||||
"branch": "stable",
|
||||
"sdk": "org.gnome.Sdk//3.26",
|
||||
"build-extension": true,
|
||||
"separate-locales": false,
|
||||
"appstream-compose": false,
|
||||
"finish-args": [
|
||||
],
|
||||
"build-options" : {
|
||||
"prefix": "/app/extensions/TexLive",
|
||||
"cflags": "-O2 -g",
|
||||
"cxxflags": "-O2 -g",
|
||||
"env": {
|
||||
"PATH": "/app/extensions/TexLive/bin:/app/extensions/TexLive/2018/bin/x86_64-linux:/app/bin:/usr/bin"
|
||||
}
|
||||
},
|
||||
"cleanup": [],
|
||||
"modules": [
|
||||
{
|
||||
"name": "wget",
|
||||
"builddir": true,
|
||||
"config-opts": ["--prefix=/app/extensions/TexLive"],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://ftp.gnu.org/gnu/wget/wget-1.19.4.tar.gz",
|
||||
"sha256": "93fb96b0f48a20ff5be0d9d9d3c4a986b469cb853131f9d5fe4cc9cecbc8b5b5"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "texlive",
|
||||
"builddir": false,
|
||||
"build-options" : {
|
||||
"build-args": ["--share=network"],
|
||||
"config-opts": ["--prefix=/app/extensions/TexLive"]
|
||||
},
|
||||
|
||||
"sources": [
|
||||
{
|
||||
"type": "file",
|
||||
"path": "texlive_install.sh",
|
||||
"dest-filename": "configure"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
# Download the installer!
|
||||
# Currently using 2017 edition, upgrade to 2018 tomorrow! (just released, needs)
|
||||
# time to propagate everywhere
|
||||
wget ftp://tug.org/historic/systems/texlive/2018/install-tl-unx.tar.gz
|
||||
myhash=$(sha256sum install-tl-unx.tar.gz | cut -d' ' -f1)
|
||||
if [ $myhash != "82c13110852af162c4c5ef1579fa2f4f51c2040850ec02fb7f97497da45eb446" ] ; then echo "CHECKSUM MISMATCH!"; exit 1 ; fi
|
||||
|
||||
tar xvf install-tl-unx.tar.gz
|
||||
|
||||
# The texlive profile sets some variables for the installation
|
||||
# so the installer doesn't use the text user interface
|
||||
# Most importantly (besides the paths') is "selected-scheme"
|
||||
# Currently set to scheme-minimal which installs almost nothing
|
||||
# (which is great for testing, but less for actual usage! :)
|
||||
|
||||
cat <<EOF > texlive.profile
|
||||
# texlive.profile written on Sat Apr 28 18:37:30 2018 UTC
|
||||
# It will NOT be updated and reflects only the
|
||||
# installation profile at installation time.
|
||||
selected_scheme scheme-basic
|
||||
TEXDIR /app/extensions/TexLive/2018
|
||||
TEXMFCONFIG ~/.texlive2018/texmf-config
|
||||
TEXMFHOME ~/texmf
|
||||
TEXMFLOCAL /app/extensions/TexLive/texmf-local
|
||||
TEXMFSYSCONFIG /app/extensions/TexLive/2018/texmf-config
|
||||
TEXMFSYSVAR /app/extensions/TexLive/2018/texmf-var
|
||||
TEXMFVAR ~/.texlive2018/texmf-var
|
||||
binary_x86_64-linux 1
|
||||
collection-fontsrecommended 1
|
||||
instopt_adjustpath 0
|
||||
instopt_adjustrepo 1
|
||||
instopt_letter 0
|
||||
instopt_portable 0
|
||||
instopt_write18_restricted 1
|
||||
tlpdbopt_autobackup 1
|
||||
tlpdbopt_backupdir tlpkg/backups
|
||||
tlpdbopt_create_formats 1
|
||||
tlpdbopt_desktop_integration 1
|
||||
tlpdbopt_file_assocs 1
|
||||
tlpdbopt_generate_updmap 0
|
||||
tlpdbopt_install_docfiles 0
|
||||
tlpdbopt_install_srcfiles 0
|
||||
tlpdbopt_post_code 1
|
||||
tlpdbopt_sys_bin /usr/local/bin
|
||||
tlpdbopt_sys_info /usr/local/share/info
|
||||
tlpdbopt_sys_man /usr/local/share/man
|
||||
tlpdbopt_w32_multi_user 1
|
||||
EOF
|
||||
|
||||
# Makefile which is required by flatpak ... so this one is almost empty
|
||||
# except for the install command which uses the texlive installer to download
|
||||
# all the packages!
|
||||
|
||||
cat <<EOF > Makefile
|
||||
all:
|
||||
echo "I am a pretty empty Makefile."
|
||||
|
||||
install:
|
||||
./install-tl-20180414/install-tl --profile texlive.profile
|
||||
EOF
|
|
@ -23,10 +23,13 @@
|
|||
}
|
||||
},
|
||||
"add-extensions": {
|
||||
"de.wolfvollprecht.UberWriter.Extension": {
|
||||
"de.wolfvollprecht.UberWriter.Plugin": {
|
||||
"directory": "extensions",
|
||||
"version": "stable",
|
||||
"subdirectories": true,
|
||||
"no-autodownload": true,
|
||||
"autodelete": true
|
||||
}
|
||||
},
|
||||
"modules" : [
|
||||
{
|
||||
|
@ -39,7 +42,8 @@
|
|||
}
|
||||
],
|
||||
"post-install": [
|
||||
"glib-compile-schemas /app/share/glib-2.0/schemas"
|
||||
"glib-compile-schemas /app/share/glib-2.0/schemas",
|
||||
"install -d /app/extensions"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -134,4 +138,4 @@
|
|||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue