summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 921fa74de224938af8069ff682e48c97c673fae6 (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
38
39
40
41
42
# Maintainer: Vincent Nascone <vincent@arch.nascone.net>

pkgname='miniflux-git'
pkgver=r1088.6e8d175
pkgrel=1
pkgdesc='Minimalist web RSS reader (Git version)'
arch=('any')
url='https://miniflux.net/'
license=('AGPL3')
depends=('php'
         'php-sqlite')
conflicts=('miniflux')
provides=('miniflux')
optdepends=('postgresql: for non-sqlite db'
            'php-pgsql: for non-sqlite db')
makedepends=('git')
options=('!strip')
install=miniflux.install
source=('git+https://github.com/miniflux/miniflux.git')
sha256sums=('SKIP')

pkgver() {
  cd miniflux
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd miniflux
  _instdir="$pkgdir"/usr/share/webapps/miniflux

  install -d "$_instdir"
  install -d "$pkgdir"/var/lib/miniflux

  cp -ra * "$_instdir/"

  rm -rf "$_instdir"/data # remove data from instdir
  cp -r data/* "$pkgdir"/var/lib/miniflux # move data to /var/lib
  #ln -s /var/lib/miniflux "$_instdir"/data # and link it back where the app expects:wq


  # TODO: systemd timer
}