summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Nascone2017-03-05 17:42:11 -0500
committerVincent Nascone2017-03-05 17:42:11 -0500
commit49a4220390c5694397c150606c3e7e5596b6a2b9 (patch)
treed5aa021f53038180f174f3af5db95bc790822c94
downloadaur-49a4220390c5694397c150606c3e7e5596b6a2b9.tar.gz
Initial miniflux commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
-rw-r--r--miniflux.install17
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..770b38268bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = miniflux-git
+ pkgdesc = Minimalist web RSS reader (Git version)
+ pkgver = r1081.9056c8d
+ pkgrel = 1
+ url = https://miniflux.net/
+ install = miniflux.install
+ arch = any
+ license = AGPL3
+ makedepends = git
+ depends = php
+ depends = php-sqlite
+ optdepends = postgresql: for non-sqlite db
+ optdepends = php-pgsel: for non-sqlite db
+ provides = miniflux
+ conflicts = miniflux
+ options = !strip
+ source = git+https://github.com/miniflux/miniflux.git
+ sha256sums = SKIP
+
+pkgname = miniflux-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..081eade948f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Vincent Nascone <vincent@arch.nascone.net>
+
+pkgname='miniflux-git'
+pkgver='r1081.9056c8d'
+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-pgsel: 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 -o http -g http -d "$_instdir"
+ install -o http -g http -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
+}
diff --git a/miniflux.install b/miniflux.install
new file mode 100644
index 00000000000..73c7af6572d
--- /dev/null
+++ b/miniflux.install
@@ -0,0 +1,17 @@
+APP_PATH="/usr/share/webapps/miniflux"
+DATA_PATH="/var/lib/miniflux"
+
+post_install() {
+ cat << EOF
+
+If using nginx don't forget to lock down $APP_PATH/data/db.sqlite!
+EOF
+post_upgrade
+}
+
+post_upgrade() {
+ chown -R http:http "${APP_PATH}"
+ chown -R http:http "${DATA_PATH}"
+
+ ln -s "${DATA_PATH}" "${APP_PATH}/data"
+}