From 574a464fafa1bee7a2b9298600151f5c5d90243b Mon Sep 17 00:00:00 2001 From: cr6git Date: Sun, 29 Jul 2018 11:40:38 +0200 Subject: [PATCH] miniflux: update to 2.0.10. (#864) --- srcpkgs/miniflux/INSTALL.msg | 7 ------- srcpkgs/miniflux/template | 34 +++++++++------------------------- srcpkgs/miniflux/update | 2 +- 3 files changed, 10 insertions(+), 33 deletions(-) delete mode 100644 srcpkgs/miniflux/INSTALL.msg diff --git a/srcpkgs/miniflux/INSTALL.msg b/srcpkgs/miniflux/INSTALL.msg deleted file mode 100644 index 2aa4a250ab..0000000000 --- a/srcpkgs/miniflux/INSTALL.msg +++ /dev/null @@ -1,7 +0,0 @@ -1. The pdo_sqlite extension needs to be enabled in /etc/php/php.ini. -2. The open_basedir directive in /etc/php/php.ini needs to contain - /var/lib/miniflux to allow file operations below it. -3. The process running miniflux should be configured to use the miniflux - group to be able to write to /var/lib/miniflux. -4. A cron job for the miniflux user should be configured to update feeds: - cd /usr/share/webapps/miniflux && php cronjob.php diff --git a/srcpkgs/miniflux/template b/srcpkgs/miniflux/template index f7a42d4713..cbbd81ea6b 100644 --- a/srcpkgs/miniflux/template +++ b/srcpkgs/miniflux/template @@ -1,32 +1,16 @@ # Template file for 'miniflux' pkgname=miniflux -version=1.2.3 +version=2.0.10 revision=1 -noarch=yes -wrksrc=$pkgname -conf_files="/usr/share/webapps/${pkgname}/config.php" +build_style=go +go_import_path="github.com/miniflux/miniflux" system_accounts="${pkgname}" miniflux_homedir="/var/lib/${pkgname}" make_dirs="/var/lib/${pkgname} 2770 ${pkgname} ${pkgname}" -hostmakedepends="unzip" -depends="php-sqlite" -short_desc="A minimalist web-based RSS reader" +depends="postgresql" +short_desc="Minimalist and opinionated feed reader written in Go" maintainer="Eivind Uggedal " -license="AGPL-3" -homepage="http://miniflux.net" -distfiles="${homepage}/${pkgname}-${version}.zip" -checksum=841eaf9bd537da79e20184391b1cef50c7661e50882c8e15fad655a83aeaf4be - -do_install() { - local dest=usr/share/webapps/${pkgname} - - vmkdir $dest - vcopy ./* $dest - - sed -e "s|\('DATA_DIRECTORY',\).*)|\1 '/var/lib/${pkgname}')|" \ - -e "s|\('DEBUG',\).*)|\1 false)|" \ - -e "s|\('ENABLE_AUTO_UPDATE',\).*)|\1 false)|" \ - config.default.php > ${DESTDIR}/${dest}/config.php - - rm ${DESTDIR}/$dest/LICENSE -} +license="Apache-2.0" +homepage="https://miniflux.app" +distfiles="https://github.com/miniflux/miniflux/archive/${version}.tar.gz" +checksum=9169c22fc71f6c9d0f310654f1bd2c74ba0a53414afacb23b7e017c80a81f4ea diff --git a/srcpkgs/miniflux/update b/srcpkgs/miniflux/update index 1b1e3f8870..6b32aaff11 100644 --- a/srcpkgs/miniflux/update +++ b/srcpkgs/miniflux/update @@ -1,2 +1,2 @@ -site="https://github.com/fguillot/miniflux/tags" +site="https://github.com/miniflux/miniflux/tags" pattern='archive/v?\K[\d.]+(?=\.tar\.gz)'