# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>

pkgname=freshrss-auto-refresh
pkgver=1.4
pkgrel=0
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"
_giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
_gittag="4f9add4567b595b2a7bdff432b0b6b8ff6912d5e"
source="$pkgname-$_gittag.tar.gz::$_giturl/archive/$_gittag.tar.gz"
options="!check" # No testsuite
builddir="$srcdir"/FreshRSS---Auto-Refresh-Extension-$_gittag
pkgusers="freshrss"
pkggroups="www-data"

package() {
	local appdir="/usr/share/webapps/${pkgname%%-*}/extensions"
	install -d "$pkgdir"/$appdir
	cp -R "$builddir"/xExtension-AutoRefresh "$pkgdir"/$appdir
}

sha512sums="
b949e46ce3765f2708a9bef413d0673f8caa706cd266e335808c158f66f1e6b1240fb7cc496cd43672a2ac83e0b58be38f749081568db08ff234772cce65d9bc  freshrss-auto-refresh-4f9add4567b595b2a7bdff432b0b6b8ff6912d5e.tar.gz
"
