# Maintainer: Antoine Martin pkgname=freshrss-readingtime pkgver=1.0 pkgrel=0 pkgdesc="Add a reading time estimation next to each article." url="https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime" arch="noarch" license="MIT" depends="freshrss" makedepends="git" source="$pkgname-$pkgver.tar.gz" _giturl="https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime" _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}" "${pkgdir}/usr/share/webapps/freshrss/extensions/" } sha512sums="d06345aaaf47fd56f3a671fb794d5979a0591b376b215a14d58a83f0a4eff14ec2e43032147d063b46cbad57879449be1c318ff4157fffeb539a75fd08b73d02 freshrss-readingtime-1.0.tar.gz"