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

pkgname=freshrss-customjs
_pkgname=CustomJS
pkgver=0.2
pkgrel=0
pkgdesc="Give possibility to overwrite the JS with a user-specific rules"
url="https://github.com/FreshRSS/Extensions"
arch="noarch"
license="MIT"
depends="freshrss"
_giturl="https://github.com/FreshRSS/Extensions"
_gittag="5e4939e392872f78da633a17a8500c9a05362634"
source="$pkgname-$_gittag.tar.gz::$_giturl/archive/$_gittag.tar.gz"
options="!check" # No testsuite
builddir="$srcdir"/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="
5474d4fddde1d5c80a137dc363d8904dcfb4170aba24855594ae7298ca1505beb58d21ab03e4e112ab06e77d49ba24c6ca4bea1587c9823d0818ed4c868ceff7  freshrss-customjs-5e4939e392872f78da633a17a8500c9a05362634.tar.gz
"
