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

pkgname=freshrss-imageproxy
_pkgname=ImageProxy
pkgver=0.5
pkgrel=0
pkgdesc="No insecure content warnings or disappearing images"
url="https://github.com/FreshRSS/Extensions"
arch="noarch"
license="GPL-3.0-only"
depends="freshrss"
_giturl="https://github.com/FreshRSS/Extensions"
_gittag="210b867bbf5f5b164fcb727b3b63c5342e1cb252"
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="
d75950862e6fd13074999abeedf5011706eceea2a8bd281d6d23ffbd01ba9aea2e04fe8d01b2d2bb6ad87b5081884fc805e7b2b91d872a585d82f5d8bc922739  freshrss-imageproxy-210b867bbf5f5b164fcb727b3b63c5342e1cb252.tar.gz
"
