[arch-commits] Commit in tt-rss/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Mon Aug 24 20:06:50 UTC 2020
Date: Monday, August 24, 2020 @ 20:06:50
Author: anatolik
Revision: 687800
archrelease: copy trunk to community-testing-any
Added:
tt-rss/repos/community-testing-any/
tt-rss/repos/community-testing-any/PKGBUILD
(from rev 687799, tt-rss/trunk/PKGBUILD)
tt-rss/repos/community-testing-any/service
(from rev 687799, tt-rss/trunk/service)
tt-rss/repos/community-testing-any/tt-rss.install
(from rev 687799, tt-rss/trunk/tt-rss.install)
----------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
service | 12 ++++++++++++
tt-rss.install | 11 +++++++++++
3 files changed, 78 insertions(+)
Copied: tt-rss/repos/community-testing-any/PKGBUILD (from rev 687799, tt-rss/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-08-24 20:06:50 UTC (rev 687800)
@@ -0,0 +1,55 @@
+# Maintainer: Anatol Pomozov <anatol at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Clément Démoulins <clement at archivel.fr>
+# Contributor: David Rosenstrauch <darose at darose.net>
+# Contributor: Erik Mank <erik at braindisorder.org>
+
+pkgname=tt-rss
+pkgver=r9948.5497a137d
+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=(php php-intl)
+install=tt-rss.install
+optdepends=('mysql'
+ 'postgresql'
+ 'php-gd: for coloured feed badges')
+makedepends=('git')
+_commit=5497a137de85d2412b1381c457127e38ed1f8768
+# 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)
+sha1sums=('SKIP'
+ 'e3277cd1d717e7803cdc41a0275dcc7c188ef8db')
+
+pkgver() {
+ cd tt-rss
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+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/service (from rev 687799, tt-rss/trunk/service)
===================================================================
--- community-testing-any/service (rev 0)
+++ community-testing-any/service 2020-08-24 20:06:50 UTC (rev 687800)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Tiny Tiny RSS feeds update daemon
+After=network.target mysqld.service postgresql.service
+
+[Service]
+ExecStart=/usr/bin/php /usr/share/webapps/tt-rss/update.php --daemon
+User=http
+StandardOutput=null
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target
Copied: tt-rss/repos/community-testing-any/tt-rss.install (from rev 687799, tt-rss/trunk/tt-rss.install)
===================================================================
--- community-testing-any/tt-rss.install (rev 0)
+++ community-testing-any/tt-rss.install 2020-08-24 20:06:50 UTC (rev 687800)
@@ -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
+}
More information about the arch-commits
mailing list