From 7791d981d177255a097bd05f797dfe18ad8603ed Mon Sep 17 00:00:00 2001
From: ayakael <antoine.martin@protonmail.com>
Date: Tue, 30 Oct 2018 12:38:22 -0400
Subject: [PATCH] Added freshrss-auto-refresh-1.0-1 Added
 freshrss-imageproxy-0.4-0 Added freshrss-readingtime-1.0-0

---
 apk/freshrss-auto-refresh/APKBUILD |  6 ++--
 apk/freshrss-imageproxy/APKBUILD   | 50 ++++++++++++++++++++++++++++++
 apk/freshrss-readingtime/APKBUILD  | 47 ++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+), 3 deletions(-)
 create mode 100644 apk/freshrss-imageproxy/APKBUILD
 create mode 100644 apk/freshrss-readingtime/APKBUILD

diff --git a/apk/freshrss-auto-refresh/APKBUILD b/apk/freshrss-auto-refresh/APKBUILD
index 7ec6d66..639e4d5 100644
--- a/apk/freshrss-auto-refresh/APKBUILD
+++ b/apk/freshrss-auto-refresh/APKBUILD
@@ -1,12 +1,12 @@
 # Maintainer: Antoine Martin <antoine@ayakael.net>
 pkgname=freshrss-auto-refresh
 pkgver=1.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected."
-url="https://github.com/ayakael/dam"
+url="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
 arch="noarch"
 license="MIT"
-depends="freshrss wallabag"
+depends="freshrss"
 makedepends="git"
 source="$pkgname-$pkgver.tar.gz"
 _giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
diff --git a/apk/freshrss-imageproxy/APKBUILD b/apk/freshrss-imageproxy/APKBUILD
new file mode 100644
index 0000000..1ba02fd
--- /dev/null
+++ b/apk/freshrss-imageproxy/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Antoine Martin <antoine@ayakael.net>
+pkgname=freshrss-imageproxy
+pkgver=0.4
+pkgrel=0
+pkgdesc="https://github.com/FreshRSS/Extensions/tree/master/xExtension-ImageProxy"
+url="https://github.com/ayakael/dam"
+arch="noarch"
+license="GPL-3.0-only"
+depends="freshrss"
+makedepends="git"
+source="$pkgname-$pkgver.tar.gz"
+_giturl="https://github.com/FreshRSS/Extensions"
+_gittag="master"
+builddir="$srcdir"
+options="!check"
+
+snapshot() {
+	mkdir -p "$srcdir"
+	cd "${SRCDEST:-$srcdir}"
+	if ! [ -d $pkgname.git ]; then
+		git clone $_giturl $pkgname.git || return 1
+		cd $pkgname.git
+	else
+		cd $pkgname.git
+		git fetch || return 1
+	fi
+
+	echo "Checking out"
+	git checkout $_gittag
+	echo "Repo archive"
+	git archive --prefix="$pkgname/" -o ${pkgname}-${pkgver}.tar --format "tar" $_gittag
+    
+   
+	gzip ${pkgname}-${pkgver}.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
+	ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz 
+}
+
+build() {
+    return 0
+}
+
+package() {
+	cd "$builddir"
+	mkdir -p "${pkgdir}/usr/share/webapps/freshrss/extensions"
+	cp -R "${pkgname}/xExtension-ImageProxy" "${pkgdir}/usr/share/webapps/freshrss/extensions/"
+}
+
+
+sha512sums="8aed100d05782a2ffd19d95fcec884ca24e323a65a06b8ba4ee0207a08f18d4148c2cd8c1cdde65aeac7f7e2d9483f06e6b13852da4eb8e95436d10f524985b0  freshrss-imageproxy-0.4.tar.gz"
+
diff --git a/apk/freshrss-readingtime/APKBUILD b/apk/freshrss-readingtime/APKBUILD
new file mode 100644
index 0000000..0e11f16
--- /dev/null
+++ b/apk/freshrss-readingtime/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Antoine Martin <antoine@ayakael.net>
+pkgname=freshrss-readingtime
+pkgver=1.0
+pkgrel=0
+pkgdesc="Add a reading time estimation next to each article."
+url="https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime"
+arch="noarch"
+license="MIT"
+depends="freshrss"
+makedepends="git"
+source="$pkgname-$pkgver.tar.gz"
+_giturl="https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime"
+_gittag="master"
+builddir="$srcdir"
+options="!check"
+
+snapshot() {
+	mkdir -p "$srcdir"
+	cd "${SRCDEST:-$srcdir}"
+	if ! [ -d $pkgname.git ]; then
+		git clone $_giturl $pkgname.git || return 1
+		cd $pkgname.git
+	else
+		cd $pkgname.git
+		git fetch || return 1
+	fi
+
+	echo "Checking out"
+	git checkout $_gittag
+	echo "Repo archive"
+	git archive --prefix="$pkgname/" -o ${pkgname}-${pkgver}.tar --format "tar" $_gittag
+    
+   
+	gzip ${pkgname}-${pkgver}.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
+	ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz 
+}
+
+build() {
+    return 0
+}
+
+package() {
+	cd "$builddir"
+	mkdir -p "${pkgdir}/usr/share/webapps/freshrss/extensions"
+	cp -R "${pkgname}" "${pkgdir}/usr/share/webapps/freshrss/extensions/"
+}
+sha512sums="d06345aaaf47fd56f3a671fb794d5979a0591b376b215a14d58a83f0a4eff14ec2e43032147d063b46cbad57879449be1c318ff4157fffeb539a75fd08b73d02  freshrss-readingtime-1.0.tar.gz"