diff --git a/metadata/com.foobnix.pro.pdf.reader.yml b/metadata/com.foobnix.pro.pdf.reader.yml index 9f516bc4d0..2f4ec98114 100644 --- a/metadata/com.foobnix.pro.pdf.reader.yml +++ b/metadata/com.foobnix.pro.pdf.reader.yml @@ -10,17 +10,7 @@ SourceCode: https://github.com/foobnix/LibreraReader IssueTracker: https://github.com/foobnix/LibreraReader/issues Changelog: https://librera.mobi/wiki/what-is-new/ -Name: Librera Reader AutoName: ${appName} -Description: |- - Librera Reader is an easy to use and highly configurable reading app that - supports PDF, EPUB, MOBI, DjVu, FB2, TXT, RTF, AZW, AZW3, HTML, CBZ and CBR - formats. With its simple, yet powerful interface, Librera makes document - reading a true pleasure. Librera even features a unique auto-scrolling, - hand-free music mode. - - Librera Reader uses MuPDF 1.11 which has multiple vulnerabilites: - https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=mupdf. RepoType: git Repo: https://github.com/foobnix/LibreraReader.git @@ -116,6 +106,36 @@ Builds: - ./link_to_mupdf_1.16.1.sh ndk: r17c + - versionName: 8.1.305-fdroid + versionCode: 3270 + commit: 8.1.305 + subdir: app/ + sudo: + - apt-get update || apt-get update + - apt-get install -y g++-6 mesa-common-dev libxcursor-dev libxrandr-dev libxinerama-dev + libgl1-mesa-dev + gradle: + - fdroid + srclibs: + - MuPDF@1.16.1 + rm: + - Builder/libs/ + prebuild: + - sed -i -e '/F-DROID REMOVE THIS LINE/,+1d' ../build.gradle + - sed -i -e '/com.google.gms.google-services/d' -e '/com.google.android.gms/d' + -e '/com.cloudrail/d' -e '/include "armeabi-v7a", "arm64-v8a"/d' build.gradle + - sed -i -e '/git clone/d' -e 's#cd mupdf-1.16.1#pushd '$PWD'/$$MuPDF$$#' -e + 's#/home/ivan-dev/git/LibreraReader/Builder/mupdf-1.16.1#'$PWD'/$$MuPDF$$#' + -e 's#/home/ivan-dev/git/LibreraReader/app/src/main/jniLibs#'$PWD'/src/main/jniLibs#' + -e 's#cd \.\.#popd#' ../Builder/link_to_mupdf_1.16.1.sh + - mkdir src/main/jniLibs/ + scandelete: + - Builder/ + build: + - pushd ../Builder/ + - ./link_to_mupdf_1.16.1.sh + ndk: r17c + MaintainerNotes: Upstream builds separate APKs for each architecture but we build an universal APK. diff --git a/srclibs/MuPDF.txt b/srclibs/MuPDF.txt index 24cedbc878..10b4db0e10 100644 --- a/srclibs/MuPDF.txt +++ b/srclibs/MuPDF.txt @@ -1,4 +1,4 @@ Repo Type:git -Repo:git://git.ghostscript.com/mupdf.git +Repo:https://git.ghostscript.com/mupdf.git/ Prepare:git submodule update --init