From ec68ce7c42f32ee2f7a357f53c22b83492b7871d Mon Sep 17 00:00:00 2001 From: somas95 Date: Wed, 9 May 2018 20:45:22 +0200 Subject: [PATCH] let's not remove those for the moment --- flatpak/fonts-download | 30 ++++++++++++++++++++++++++++++ flatpak/pandoc-download | 35 +++++++++++++++++++++++++++++++++++ flatpak/pip-download | 24 ++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100755 flatpak/fonts-download create mode 100755 flatpak/pandoc-download create mode 100755 flatpak/pip-download diff --git a/flatpak/fonts-download b/flatpak/fonts-download new file mode 100755 index 0000000..88564ef --- /dev/null +++ b/flatpak/fonts-download @@ -0,0 +1,30 @@ +#!/bin/sh + +for i in "$@" +do + case $i in + --module=*) + MODULENAME="${i#*=}" + shift + ;; + *) + ARGS="$ARGS $i" + shift + ;; + esac +done + + +cat < Makefile +all: + echo "Nothing" + +install: + mkdir /tmp/fonts + cd /tmp/fonts + curl -L https://fonts.google.com/download?family=Fira%20Mono > Fira_Mono.zip + unzip Fira_Mono.zip + rm Fira_Mono.zip + mkdir -p /app/share/fonts + cp ./* /app/share/fonts +EOF diff --git a/flatpak/pandoc-download b/flatpak/pandoc-download new file mode 100755 index 0000000..a633463 --- /dev/null +++ b/flatpak/pandoc-download @@ -0,0 +1,35 @@ +#!/bin/sh + +for i in "$@" +do + case $i in + --module=*) + MODULENAME="${i#*=}" + shift + ;; + *) + ARGS="$ARGS $i" + shift + ;; + esac +done + + +cat < Makefile +all: + echo "Nothing" + +install: + CXX=/usr/bin/g++ CC=/usr/bin/gcc PYTHONUSERBASE=/app/ pip3 install --user $MODULENAME; + cd /tmp/ + mkdir pandoc_dl && cd pandoc_dl + curl -L https://github.com/jgm/pandoc/releases/download/2.1.3/pandoc-2.1.3-1-amd64.deb > pandoc.deb + ar x pandoc.deb + tar xf data.tar.* + cp ./usr/bin/pandoc /app/bin/pandoc + cp ./usr/bin/pandoc-citeproc /app/bin/pandoc-citeproc + mkdir -p /app/share/ + cp ./usr/share/doc/pandoc/copyright /app/share/pandoc.copyright + cd .. + rm -rf /tmp/pandoc_dl +EOF diff --git a/flatpak/pip-download b/flatpak/pip-download new file mode 100755 index 0000000..5e41318 --- /dev/null +++ b/flatpak/pip-download @@ -0,0 +1,24 @@ +#!/bin/sh + +for i in "$@" +do + case $i in + --module=*) + MODULENAME="${i#*=}" + shift + ;; + *) + ARGS="$ARGS $i" + shift + ;; + esac +done + + +cat < Makefile +all: + echo "Nothing" + +install: + CXX=/usr/bin/g++ CC=/usr/bin/gcc PYTHONUSERBASE=/app/ pip3 install --user $MODULENAME +EOF