[Replicant] [PATCH] Include F-droid's Offline Calendar as a prebuild

Andrés Domínguez andresdju at gmail.com
Sun Oct 13 18:23:20 UTC 2019


---
 config/common.mk           |  1 +
 get-prebuilts              | 18 ++++++++++++++----
 prebuilt/common/Android.mk |  8 ++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/config/common.mk b/config/common.mk
index 6340f0a6..d429624c 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -136,6 +136,7 @@ PRODUCT_PACKAGES += \
     SoundRecorder \
     Screencast \
     F-DroidPrivilegedExtension \
+    OfflineCalendar \
     RepWifi
 
 # Exchange support
diff --git a/get-prebuilts b/get-prebuilts
index 0e4398d7..b8cc0d78 100755
--- a/get-prebuilts
+++ b/get-prebuilts
@@ -5,7 +5,17 @@ BASEDIR=$( dirname $0 )
 
 mkdir -p $BASEDIR/prebuilt/common/apps/
 
-# F-Droid
-curl -L -o $BASEDIR/prebuilt/common/apps/FDroid.apk -O -L https://f-droid.org/FDroid.apk
-curl -L -o $BASEDIR/prebuilt/common/apps/FDroid.apk.asc -O -L https://f-droid.org/FDroid.apk.asc
-gpg --armor --verify $BASEDIR/prebuilt/common/apps/FDroid.apk.asc $BASEDIR/prebuilt/common/apps/FDroid.apk
+# F-Droid Apps
+
+FDroidApps="org.sufficientlysecure.localcalendar_9"
+
+for app in $FDroidApps;
+do
+    echo "Downloading ${app}..."
+    curl -L -o $BASEDIR/prebuilt/common/apps/"${app}".apk -O -L https://f-droid.org/repo/"${app}".apk
+    echo "Downloading signature for ${app}..."
+    curl -L -o $BASEDIR/prebuilt/common/apps/"${app}".apk.asc -O -L https://f-droid.org/repo/"${app}".apk.asc
+    echo "Checking signature..."
+    gpg --armor --verify $BASEDIR/prebuilt/common/apps/"${app}".apk.asc $BASEDIR/prebuilt/common/apps/"${app}".apk
+    echo ""
+done
diff --git a/prebuilt/common/Android.mk b/prebuilt/common/Android.mk
index f15b178c..aed73e3c 100644
--- a/prebuilt/common/Android.mk
+++ b/prebuilt/common/Android.mk
@@ -8,3 +8,11 @@ LOCAL_MODULE_TAGS := optional
 LOCAL_MODULE_CLASS := EXECUTABLES
 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
 include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := OfflineCalendar
+LOCAL_MODULE_CLASS := APPS
+LOCAL_CERTIFICATE := PRESIGNED
+LOCAL_SRC_FILES := apps/org.sufficientlysecure.localcalendar_9.apk
+include $(BUILD_PREBUILT)
+
-- 
2.23.0



More information about the Replicant mailing list