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

pkgname=freshrss-keepfolderstate
_pkgname=KeepFolderState
pkgver=0.1
pkgrel=0
pkgdesc="Stores the state of the folders locally and expand them automatically if necessary"
url="https://github.com/langfeld/FreshRSS-extensions"
arch="noarch"
license="MIT"
depends="freshrss"
_giturl="https://github.com/langfeld/FreshRSS-extensions"
_gittag="0b5b158c97601d44829975e03a9321fd797c623c"
source="$pkgname-$_gittag.tar.gz::$_giturl/archive/$_gittag.tar.gz"
options="!check" # No testsuite
builddir="$srcdir"/FreshRSS-extensions-$_gittag
pkgusers="freshrss"
pkggroups="www-data"

package() {
	local appdir="/usr/share/webapps/${pkgname%%-*}/extensions"
	install -d "$pkgdir"/$appdir
	cp -R "$builddir"/xExtension-$_pkgname "$pkgdir"/$appdir
}
sha512sums="
c6ed8959da22f2c9d0010489bc8e770c6f320dfb0b01cde13ce316c8406a1349d722b8bb0cc148da24216b6bf39565c33a2135be01d6ce24d593f08a1d9425ad  freshrss-keepfolderstate-0b5b158c97601d44829975e03a9321fd797c623c.tar.gz
"
