2018-10-03 16:30:38 +00:00
|
|
|
# Maintainer: Antoine Martin <antoine@ayakael.net>
|
|
|
|
pkgname=freshrss-auto-refresh
|
|
|
|
pkgver=1.0
|
2018-10-30 16:38:22 +00:00
|
|
|
pkgrel=1
|
2018-10-03 16:30:38 +00:00
|
|
|
pkgdesc="Automatically refreshes FreshRSS page once in a minute when there is no activity detected."
|
2018-10-30 16:38:22 +00:00
|
|
|
url="https://github.com/Eisa01/FreshRSS---Auto-Refresh-Extension"
|
2018-10-03 16:30:38 +00:00
|
|
|
arch="noarch"
|
|
|
|
license="MIT"
|
2018-10-30 16:38:22 +00:00
|
|
|
depends="freshrss"
|
2018-10-03 16:30:38 +00:00
|
|
|
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"
|