summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a426b06079764da5f74c57e99c0373f979da82f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>

pkgname=freshrss-extensions-git
pkgver=r136.7af45f2
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"
  ( 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)"
  )


}


package() {
  cd "${srcdir}/Extensions"
  install -d "${pkgdir}/usr/share/webapps/freshrss/extensions"

  for extension in xExtension-* ; do
    cp -r $extension "${pkgdir}"/usr/share/webapps/freshrss/extensions/
  done

}

# vim:set ts=2 sw=2 et: