1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Maxim Andersson <thesilentboatman@gmail.com>
# Contributor: Tetsumaki <http://goo.gl/YMBdA>
pkgname=selfoss-git
_gitname=selfoss
pkgver=2.17.r109.ge2dc9e1
pkgrel=1
pkgdesc="The new multipurpose rss reader, live stream, mashup, aggregation web application"
arch=('any')
url="http://selfoss.aditu.de/"
license=('GPL3')
depends=('php>=5.3' 'php-gd')
optdepends=('apache: server, depedency if not using lighttpd or nginx'
'lighttpd: server, depedency if not using apache or nginx'
'nginx: server, depedency if not using lighttpd or apache'
'mariadb: database, depedency if not using postgresql or sqlite'
'postgresql: database, depedency if not using mariadb or sqlite'
'sqlite: database, depedency if not using postgresql or mariadb'
'php-sqlite: dependency if using sqlite'
'wget: for automatic updating feeds with cron'
'curl: for automatic updating feeds with cron')
makedepends=('composer' 'git')
provides=('selfoss')
conflicts=('selfoss')
backup=('etc/webapps/selfoss/config.ini'
'usr/share/webapps/selfoss/config.ini')
install=${pkgname}.install
source=('git://github.com/SSilence/selfoss.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}"/${_gitname}
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}"/${_gitname}
composer install --no-dev
git submodule update --init
}
package() {
cd "${srcdir}"/${_gitname}
rm -rf .git* _docs README.md composer* package.json gruntfile.js .travis.yml
rm -rf data/fulltextrss/standard/.git*
install -d "${pkgdir}"/usr/share/webapps/${_gitname}
cp -af . "${pkgdir}"/usr/share/webapps/${_gitname}/
# create config in /etc
install -d "${pkgdir}"/etc/webapps/${_gitname}
sed '4,$s/^/;/' "${pkgdir}"/usr/share/webapps/${_gitname}/defaults.ini > "${pkgdir}"/etc/webapps/${_gitname}/config.ini
ln -sf /etc/webapps/${_gitname}/config.ini "${pkgdir}"/usr/share/webapps/${_gitname}/config.ini
chmod 755 "${pkgdir}"/usr/share/webapps/${_gitname}/{data/cache,data/favicons,data/logs,data/sqlite,data/thumbnails,public}
chown -R http: "${pkgdir}"/usr/share/webapps/${_gitname}
}
# vim:set ts=2 sw=2 et:
|