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

pkgname=freshrss-latexsupport
_pkgname=LatexSupport
pkgver=0.1.4
pkgrel=0
pkgdesc="A FreshRSS extension which add LaTeX support"
url="https://github.com/aledeg/xExtension-LatexSupport"
arch="noarch"
license="AGPL-3.0-only"
depends="freshrss"
_giturl="https://github.com/aledeg/xExtension-LatexSupport"
_gittag="f0472a9603d1308081542fc3c0b962c54bebf3a9"
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"/xExtension-$_pkgname-$_gittag "$pkgdir"/$appdir//xExtension-$_pkgname
}

sha512sums="
0adf522ac547107096ed532a03e2ef7cb5f26403674959602bd7f27e3bfdfc91aa35bbabc30cae12e3909994fa6733e075b647d14c102ec7dfd3e7da54e05aa0  freshrss-latexsupport-f0472a9603d1308081542fc3c0b962c54bebf3a9.tar.gz
"
