From 5e8140648d74a736ae4b2d68e0974ff3fcbc1510 Mon Sep 17 00:00:00 2001 From: ayakael Date: Wed, 3 Oct 2018 12:30:38 -0400 Subject: [PATCH] Added freshrss-auto-refresh-1.0-0 --- apk/freshrss-auto-refresh/APKBUILD | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 apk/freshrss-auto-refresh/APKBUILD diff --git a/apk/freshrss-auto-refresh/APKBUILD b/apk/freshrss-auto-refresh/APKBUILD new file mode 100644 index 0000000..7ec6d66 --- /dev/null +++ b/apk/freshrss-auto-refresh/APKBUILD @@ -0,0 +1,48 @@ +# Maintainer: Antoine Martin +pkgname=freshrss-auto-refresh +pkgver=1.0 +pkgrel=0 +pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected." +url="https://github.com/ayakael/dam" +arch="noarch" +license="MIT" +depends="freshrss wallabag" +makedepends="git" +source="$pkgname-$pkgver.tar.gz" +_giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension" +_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-AutoRefresh" "${pkgdir}/usr/share/webapps/freshrss/extensions/" +} + +sha512sums="6d5d9d1c4475cb678e540080bfe1d8bdea124a73533744edc1b1914c49d9350c58032afffe9cb8d195c2e7815d840503f35a0d0f857235cb86b334791fa6c39f freshrss-auto-refresh-1.0.tar.gz"