Date: Monday, February 1, 2021 @ 02:08:08 Author: anatolik Revision: 839126
archrelease: copy trunk to community-testing-any Added: tt-rss/repos/community-testing-any/ tt-rss/repos/community-testing-any/PKGBUILD (from rev 839125, tt-rss/trunk/PKGBUILD) tt-rss/repos/community-testing-any/php7.patch (from rev 839125, tt-rss/trunk/php7.patch) tt-rss/repos/community-testing-any/service (from rev 839125, tt-rss/trunk/service) tt-rss/repos/community-testing-any/tt-rss.install (from rev 839125, tt-rss/trunk/tt-rss.install) ----------------+ PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ php7.patch | 26 +++++++++++++++++++++++ service | 10 ++++++++ tt-rss.install | 11 +++++++++ 4 files changed, 109 insertions(+) Copied: tt-rss/repos/community-testing-any/PKGBUILD (from rev 839125, tt-rss/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2021-02-01 02:08:08 UTC (rev 839126) @@ -0,0 +1,62 @@ +# Maintainer: Anatol Pomozov <ana...@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: Clément Démoulins <clem...@archivel.fr> +# Contributor: David Rosenstrauch <dar...@darose.net> +# Contributor: Erik Mank <e...@braindisorder.org> + +pkgname=tt-rss +pkgver=r10198.6d8f2221b +pkgrel=1 +epoch=2 +pkgdesc='Web-based news feed (RSS/Atom) aggregator' +arch=(any) +url='https://tt-rss.org' +license=(GPL) +backup=(etc/webapps/tt-rss/config.php) +depends=(php7 php7-intl) +install=tt-rss.install +optdepends=('mysql' + 'postgresql' + 'php7-gd: for coloured feed badges') +makedepends=('git') +_commit=6d8f2221b82b6a31becbeed8baf5e05ad9e053fe +# periodic releases are over https://tt-rss.org/forum/viewtopic.php?f=10&t=3262 +source=(git+https://git.tt-rss.org/fox/tt-rss.git#commit=$_commit + service + php7.patch) +sha1sums=('SKIP' + '6975508c8cbe86152489fc6f1887c1d0d7df19e0' + '6e6a6350bf645f2d84785aa1c8e613be0cca337e') + +pkgver() { + cd tt-rss + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd tt-rss + patch -p1 < ../php7.patch # https://bugs.archlinux.org/task/69462#comment196184 +} + +package() { + cd tt-rss + _instdir="$pkgdir"/usr/share/webapps/$pkgname + + install -d "$_instdir" + cp -ra * "$_instdir/" + + echo $pkgver > "$_instdir/version_static.txt" + + install -Dm640 -g 33 config.php-dist "$pkgdir"/etc/webapps/tt-rss/config.php + ln -s /etc/webapps/tt-rss/config.php "$_instdir"/config.php + + install -d "$pkgdir"/var/lib/tt-rss + mv "$_instdir"/{lock,feed-icons,cache} "$pkgdir"/var/lib/tt-rss + ln -s /var/lib/tt-rss/lock "$_instdir"/lock + ln -s /var/lib/tt-rss/feed-icons "$_instdir"/feed-icons + ln -s /var/lib/tt-rss/cache "$_instdir"/cache + chown -R 33:33 "$pkgdir"/var/lib/tt-rss + chmod -R 777 "$pkgdir"/var/lib/tt-rss/* + + install -Dm644 "$srcdir"/service "$pkgdir"/usr/lib/systemd/system/tt-rss.service +} Copied: tt-rss/repos/community-testing-any/php7.patch (from rev 839125, tt-rss/trunk/php7.patch) =================================================================== --- community-testing-any/php7.patch (rev 0) +++ community-testing-any/php7.patch 2021-02-01 02:08:08 UTC (rev 839126) @@ -0,0 +1,26 @@ +diff --git a/config.php-dist b/config.php-dist +index eed1a699d..c18886390 100644 +--- a/config.php-dist ++++ b/config.php-dist +@@ -44,7 +44,7 @@ + // *** Files and directories *** + // ***************************** + +- define('PHP_EXECUTABLE', '/usr/bin/php'); ++ define('PHP_EXECUTABLE', '/usr/bin/php7'); + // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss + // programs and update daemon. Do not try to use CGI binary here, it won't work. + // If you see HTTP headers being displayed while running tt-rss scripts, +diff --git a/update.php b/update.php +index 2737b0456..721696d3a 100755 +--- a/update.php ++++ b/update.php +@@ -73,7 +73,7 @@ + } + + if (!defined('PHP_EXECUTABLE')) +- define('PHP_EXECUTABLE', '/usr/bin/php'); ++ define('PHP_EXECUTABLE', '/usr/bin/php7'); + + $pdo = Db::pdo(); + Copied: tt-rss/repos/community-testing-any/service (from rev 839125, tt-rss/trunk/service) =================================================================== --- community-testing-any/service (rev 0) +++ community-testing-any/service 2021-02-01 02:08:08 UTC (rev 839126) @@ -0,0 +1,10 @@ +[Unit] +Description=Tiny Tiny RSS feeds update daemon +After=network.target mysqld.service postgresql.service + +[Service] +ExecStart=/usr/bin/php7 /usr/share/webapps/tt-rss/update.php --daemon +User=http + +[Install] +WantedBy=multi-user.target Copied: tt-rss/repos/community-testing-any/tt-rss.install (from rev 839125, tt-rss/trunk/tt-rss.install) =================================================================== --- community-testing-any/tt-rss.install (rev 0) +++ community-testing-any/tt-rss.install 2021-02-01 02:08:08 UTC (rev 839126) @@ -0,0 +1,11 @@ +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if [ "$(vercmp $2 1:19.2.r209.gb68db2d02-1)" -le 0 ]; then + cat << EOF +===> Please make sure 'extension=intl' is enabled in PHP config (/etc/php/php.ini) +===> Otherwise you'll get a 'PHP UConverter class is missing' error +===> See https://wiki.archlinux.org/index.php/TT-RSS for more info +EOF + fi +}