ayaports/apk/freshrss-auto-refresh/APKBUILD
ayakael 7791d981d1
Added freshrss-auto-refresh-1.0-1
Added freshrss-imageproxy-0.4-0
Added freshrss-readingtime-1.0-0
2018-10-30 12:38:22 -04:00

48 lines
1.4 KiB
Text

# Maintainer: Antoine Martin <antoine@ayakael.net>
pkgname=freshrss-auto-refresh
pkgver=1.0
pkgrel=1
pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected."
url="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
arch="noarch"
license="MIT"
depends="freshrss"
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"