ayaports/user/freshrss-auto-refresh/APKBUILD
2022-07-29 15:47:03 +00:00

50 lines
1.5 KiB
Text

# Maintainer: Antoine Martin <antoine@ayakael.net>
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"
_gittag=4f9add4567b595b2a7bdff432b0b6b8ff6912d5e
source="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension/archive/$_gittag.tar.gz"
_giturl="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
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="
b949e46ce3765f2708a9bef413d0673f8caa706cd266e335808c158f66f1e6b1240fb7cc496cd43672a2ac83e0b58be38f749081568db08ff234772cce65d9bc 4f9add4567b595b2a7bdff432b0b6b8ff6912d5e.tar.gz
"