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

pkgname=freshrss-wallabag
_pkgname=Wallabag
pkgver=0.1
pkgrel=0
pkgdesc="This FreshRSS extension adds a button to each article which adds the respective article to your Wallabag installation."
url="https://github.com/youknow0/freshrss-wallabag"
arch="noarch"
license="AGPL-3.0-only"
depends="freshrss"
_giturl="https://github.com/gbossss/freshrss-wallabag"
_gittag="86de03d1c0e3b798fee4e795376fb0641c7e9318"
source="$pkgname-$_gittag.tar.gz::$_giturl/archive/$_gittag.tar.gz"
options="!check" # No testsuite
builddir="$srcdir"
pkgusers="freshrss"
pkggroups="www-data"

package() {
	local appdir="/usr/share/webapps/${pkgname%%-*}/extensions"
	install -d "$pkgdir"/$appdir
	cp -R "$builddir"/$pkgname-$_gittag "$pkgdir"/$appdir/xExtension-$_pkgname
}
sha512sums="
225df6635bf4a5239087f17e3e23409135434602302c1b07f23adf94b0a01bebeb9fd5c85d95d99cf63334ba62d4874d9e3dbd77e70f44e1467bcf7aab48be57  freshrss-wallabag-86de03d1c0e3b798fee4e795376fb0641c7e9318.tar.gz
"
