1 # Submitter: David Rosenstrauch <darose@darose.net>
2 # Maintainer: Erik Mank <erik@braindisorder.org>
6 pkgdesc="Tiny Tiny RSS is an open source web-based news feed (RSS/Atom) aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible."
8 url="http://tt-rss.org/redmine/"
13 optdepends=('apache' 'mysql' 'postgresql' 'php-curl')
19 install=tt-rss.install
21 source=(http://tt-rss.org/download/$pkgname-$pkgver.tar.gz)
23 md5sums=('64d5c0c1ce3523de221e42f0d6f03d53')
29 cd "$srcdir/$pkgname-$pkgver"
31 install -d ${pkgdir}/srv/http/tt-rss
32 cp -r * ${pkgdir}/srv/http/tt-rss/
34 # make several directories writable by http user
35 chmod g+w ${pkgdir}/srv/http/tt-rss/lock
36 chgrp http ${pkgdir}/srv/http/tt-rss/lock
38 chmod g+w ${pkgdir}/srv/http/tt-rss/feed-icons
39 chgrp http ${pkgdir}/srv/http/tt-rss/feed-icons
41 chmod -R g+w ${pkgdir}/srv/http/tt-rss/cache
42 chgrp -R http ${pkgdir}/srv/http/tt-rss/cache
44 chmod g+w ${pkgdir}/srv/http/tt-rss/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
45 chgrp http ${pkgdir}/srv/http/tt-rss/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
47 # update SQL to use ENGINE instead of TYPE, to conform with MySQL5.5
48 find ${pkgdir} -type f -wholename "*mysql*sql" -exec sed -i s/TYPE=/ENGINE=/ {} \;