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

pkgname=freshrss-redditimage
_pkgname=RedditImage
pkgver=0.12.1
pkgrel=0
pkgdesc="Modify reddit entries by displaying known medias and easing access to the linked resource"
url="https://github.com/aledeg/xExtension-RedditImage"
arch="noarch"
license="MIT"
depends="freshrss"
_giturl="https://github.com/aledeg/xExtension-RedditImage"
_gittag="0a5dc951bcba85741acd0426c907a1efc12819cd"
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="
8bde0c3acc0331978c486782415b4c199dfc0b41132d3115f571f900c30dc22c997f298bc57d922e32ab71b79c33cc6c4ae5189334033c957c168df774846e6a  freshrss-redditimage-0a5dc951bcba85741acd0426c907a1efc12819cd.tar.gz
"
