# Maintainer: Anatol Pomozov # Contributor: Bartłomiej Piotrowski # Contributor: Clément Démoulins # Contributor: David Rosenstrauch # Contributor: Erik Mank pkgname=tt-rss pkgver=r11238.95431890b 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=95431890bea57c6fcc3f6198a7a27b1993f3fba4 # 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 tt-rss.service $pkgname-php8.1.patch::https://git-gitea.tt-rss.org/yan12125/tt-rss/commit/4dad4fb9c95a0214c34ee3b5d809e2756de0dd97.patch) sha1sums=('SKIP' 'd764e22065f8e0104b4f1d5dcf41cce01cd7bec5' '50f43bf6af7f407bee17cef7600befcdb3a7ee49') pkgver() { cd tt-rss printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd tt-rss # https://bugs.archlinux.org/task/73451 # An unmerged commit from https://git-gitea.tt-rss.org/fox/tt-rss/pulls/67 patch -Np1 -i ../$pkgname-php8.1.patch } 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"/tt-rss.service "$pkgdir"/usr/lib/systemd/system/tt-rss.service }