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

pkgname=freshrss-youtube
_pkgname=YouTube
pkgver=0.10.2
pkgrel=0
pkgdesc="Embed YouTube/PeerTube feeds inside article content."
url="https://github.com/kevinpapst/freshrss-youtube"
arch="noarch"
license="GPL-3.0-only"
depends="freshrss"
_giturl="https://github.com/kevinpapst/freshrss-youtube"
_gittag="$pkgver"
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/xExtension-$_pkgname "$pkgdir"/$appdir
}
sha512sums="
3374dbbf71f803a7761191d8c6290d589a9d1900912fad16d6edc8d8defcf068bb94476083fdf8ec32999f6917ac632cdb8236e75785e096ca26a1e671c85dc3  freshrss-youtube-0.10.2.tar.gz
"
