# Maintainer: Antoine Martin pkgname=freshrss-auto-refresh pkgver=1.3 pkgrel=0 pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected." url="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension" arch="noarch" license="MIT" depends="freshrss" makedepends="git" source="$pkgname-$pkgver.tar.gz" _giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension" _gittag="1d26672a78d3b6f8e0d45ccf51a385764ff6bfca" 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" cp -R "${pkgname}/xExtension-AutoRefresh" "${pkgdir}/usr/share/webapps/freshrss/extensions/" } sha512sums="bd00e0e5007fdd5cd917b6594942efe8844ce2de97652da32727c4dca8242b87e798bc1953e5624c1c4bd99af7c0950023f5016f3f554c346b6aa6f462a8e708 freshrss-auto-refresh-1.3.tar.gz"