# Maintainer: Bjonnh <bjonnh-arch@bjonnh.net>
# Based on the tt-rss PKGBUILD
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Clément Démoulins <clement@archivel.fr>
# Contributor: David Rosenstrauch <darose@darose.net>
# Contributor: Erik Mank <erik@braindisorder.org>
# Contributor: Florian Bruhin <archlinux.org@the-compiler.org>
pkgname=tt-rss-git
pkgver=r7938.9232283
pkgrel=1
pkgdesc='Web-based news feed (RSS/Atom) aggregator (Git version)'
arch=('any')
url='http://tt-rss.org/redmine/'
license=('GPL')
depends=('php')
makeodepends=('git')
conflicts=('tt-rss')
provide=('tt-rss')
optdepends=('mysql' 'postgresql' 'php-curl')
install=tt-rss.install
source=('git+https://tt-rss.org/gitlab/fox/tt-rss.git'
service)
sha256sums=('SKIP'
'8c33ab29cdb2eda25724e738ed04cb472a7fec0a9edca45729f29b17c46e55df')
options=(!strip)
pkgver() {
cd "$srcdir/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/tt-rss
install -d "$_instdir"
cp -ra * "$_instdir/"
install -Dm640 -g http 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
}
{"text":"text","html5":"html","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"lua","bash":"sh","erlang":"erlang","go":"golang","c":"c_cpp","cpp":"c_cpp","diff":"diff","latex":"latex","sql":"sql","xml":"xml","0":"text","abap":"abap","actionscript":"actionscript","actionscript3":"actionscript","ada":"ada","apache":"apache_conf","applescript":"applescript","asm":"assembly_x86","autohotkey":"autohotkey","closure":"closure","cobol":"cobol","coffeescript":"coffee","cpp-winapi":"c_cpp","c_loadrunner":"c_cpp","c_mac":"c_cpp","c_winapi":"c_cpp","csharp":"csharp","d":"d","dart":"dart","dot":"dot","eiffel":"eiffel","fortran":"fortran","groovy":"groovy","haskell":"haskell","haxe":"haxe","ini":"ini","io":"io","java":"java","java5":"java","make":"makefile","matlab":"matlab","mysql":"mysql","objc":"objectivec","ocaml":"ocaml","pascal":"pascal","perl":"perl","perl6":"perl","postgresql":"pgsql","powershell":"powershell","prolog":"prolog","properties":"properties","rails":"ruby","rust":"rust","scala":"scala","scheme":"scheme","smarty":"smarty","tcl":"tcl","vala":"vala","vb":"vbscript","verilog":"verilog","vhdl":"vhdl","yaml":"yaml"}