updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / tt-rss / PKGBUILD
blob448496af32346457903aa3d897c761368f4f244e
1 # Submitter: David Rosenstrauch <darose@darose.net>
2 # Maintainer: Erik Mank <erik@braindisorder.org>
3 pkgname=tt-rss
4 pkgver=1.5.7
5 pkgrel=1
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."
7 arch=('any')
8 url="http://tt-rss.org/redmine/"
9 license=('GPL')
10 groups=()
11 depends=('php')
12 makedepends=()
13 optdepends=('apache' 'mysql' 'postgresql' 'php-curl')
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=tt-rss.install
20 changelog=
21 source=(http://tt-rss.org/download/$pkgname-$pkgver.tar.gz)
22 noextract=()
23 md5sums=('64d5c0c1ce3523de221e42f0d6f03d53')
25 #build() {
28 package() {
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=/ {} \;