# Maintainer: Antoine Martin pkgname=freshrss-redditimage pkgver=0.12.0 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" makedepends="git" source="https://github.com/aledeg/xExtension-RedditImage/archive/refs/tags/v$pkgver.tar.gz" _giturl="https://github.com/aledeg/xExtension-RedditImage" _gittag="ae1c643445c7e9a0f326bdff4d432bdada6e589d" builddir="$srcdir" options="!check" snapshot() { mkdir -p "$srcdir" cd "${SRCDEST:-$srcdir}" if ! [ -d $pkgname.git ]; then git clone $_giturl $pkgname.git || return 1 cd $pkgname.git else cd $pkgname.git git fetch || return 1 fi echo "Checking out" git checkout $_gittag echo "Repo archive" git archive --prefix="$pkgname/" -o ${pkgname}-${pkgver}.tar --format "tar" $_gittag gzip ${pkgname}-${pkgver}.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz } build() { return 0 } package() { cd "$builddir" mkdir -p "${pkgdir}/usr/share/webapps/freshrss/extensions/xExtension-RedditImage" cp -R "${pkgname}/"* "${pkgdir}/usr/share/webapps/freshrss/extensions/xExtension-RedditImage" } sha512sums=" 3bdcbbd13b2b3388e876404f836d63bf0176ee1ecdc55f9bd137f65b526674fbbd57a610ddcb2ef4098698c8a8f3a5809040ac54e56412dea1fe0733ef4cc32a v0.12.0.tar.gz "