From 1b6e2135930ca58367ee9edf99496c279ecefce5 Mon Sep 17 00:00:00 2001
From: Manizuca <matias.nicolas.zc@gmail.com>
Date: Fri, 23 Jan 2015 18:23:37 -0300
Subject: [PATCH] Add LibreOffice Viewer

---
 metadata/org.libreoffice.txt | 44 ++++++++++++++++++++++++++++++++++++
 srclibs/LOTarballs.txt       |  2 ++
 2 files changed, 46 insertions(+)
 create mode 100644 metadata/org.libreoffice.txt
 create mode 100644 srclibs/LOTarballs.txt

diff --git a/metadata/org.libreoffice.txt b/metadata/org.libreoffice.txt
new file mode 100644
index 0000000000..3c92a6b1fd
--- /dev/null
+++ b/metadata/org.libreoffice.txt
@@ -0,0 +1,44 @@
+Categories:Office
+License:MPL2
+Web Site:https://wiki.documentfoundation.org/Android
+Source Code:http://cgit.freedesktop.org/libreoffice/core/tree/
+Issue Tracker:https://www.libreoffice.org/bugzilla/
+Donate:https://donate.libreoffice.org/
+
+Name:LibreOffice Viewer Beta
+Summary:Document Viewer
+Description:
+LibreOffice Viewer uses the same engine as LibreOffice for Windows, Mac, and Linux. This, combined with a new front-end based on Firefox for Android, reads documents similarly to LibreOffice desktop.
+
+Supported files:
+- Open Document Format (.odt, .odp, .ods, .ots, .ott, .otp)
+- Microsoft Office 2007/2010/2013 (.docx, .pptx, .xlsx, .dotx, .xltx, .ppsx)
+- Microsoft Office 97/2000/XP/2003 (.doc, .ppt, .xls, .dot, .xlt, .pps)
+
+Coming in future releases:
+- Interactive document elements (e.g. URLs)
+- Support for browsing external SD storage
+- Many more features planned
+
+Usability:
+- Beta status, has crashing bugs
+.
+
+Repo Type:git
+Repo:git://anongit.freedesktop.org/libreoffice/core
+
+Build:4.5.0.0.alpha0+/e12d566,3
+    commit=e12d566
+    srclibs=LOTarballs@c873ae6f
+    ndk=r10d
+    output=android/experimental/LOAndroid3/bin/LibreOfficeViewer-release-unsigned.apk
+    prebuild=sed -i -e 's/\/$(OOO_VENDOR)//g' android/Bootstrap/Makefile.shared
+    build=ln -s ../$$LOTarballs$$ external/tarballs && \
+        ./autogen.sh --enable-release-build --with-vendor=fdroid --with-android-package-name="org.libreoffice" --enable-fetch-external=no --with-android-ndk=$$NDK$$ --with-android-ndk-toolchain-version=4.9 --with-android-sdk=$$SDK$$ --with-distro=LibreOfficeAndroid && \
+        make versionCode=3
+
+Auto Update Mode:None
+Update Check Mode:None
+Current Version:4.5.0.0.alpha0+/e12d566
+Current Version Code:3
+
diff --git a/srclibs/LOTarballs.txt b/srclibs/LOTarballs.txt
new file mode 100644
index 0000000000..036b0cb896
--- /dev/null
+++ b/srclibs/LOTarballs.txt
@@ -0,0 +1,2 @@
+Repo Type:git
+Repo:https://gitlab.com/Manizuca/LOTarballs.git