2021-02-04 10:40:15 +01:00
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
pkgname=freshrss-extensions-git
2021-02-04 10:43:44 +01:00
pkgver=r136.7af45f2
2021-02-04 10:40:15 +01:00
pkgrel=1
pkgdesc='all the official FreshRSS extensions'
arch=('any')
url='https://github.com/FreshRSS/Extensions'
license=('AGPL')
depends=('freshrss')
makedepends=('git')
source=("git+https://github.com/FreshRSS/Extensions.git")
sha256sums=('SKIP')
pkgver(){
cd "Extensions"
2021-02-04 10:43:44 +01:00
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
2021-02-04 10:40:15 +01:00
}
package() {
cd "${srcdir}/Extensions"
install -d "${pkgdir}/usr/share/webapps/freshrss/extensions"
for extension in {xExtension-CustomCSS,xExtension-CustomJS,xExtension-ImageProxy,xExtension-QuickCollapse,xExtension-ReadingTime,xExtension-ShareByEmail,xExtension-StickyFeeds,xExtension-TTRSS_API,xExtension-TitleWrap} ; do
cp -r $extension "${pkgdir}"/usr/share/webapps/freshrss/extensions/
done
}
# vim:set ts=2 sw=2 et: