# Maintainer: Antoine Martin pkgname=freshrss-auto-refresh pkgver=1.0 pkgrel=0 pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected." url="https://github.com/ayakael/dam" arch="noarch" license="MIT" depends="freshrss wallabag" makedepends="git" source="$pkgname-$pkgver.tar.gz" _giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension" _gittag="master" 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="6d5d9d1c4475cb678e540080bfe1d8bdea124a73533744edc1b1914c49d9350c58032afffe9cb8d195c2e7815d840503f35a0d0f857235cb86b334791fa6c39f freshrss-auto-refresh-1.0.tar.gz"