blob: b60852324a3bd1466068c77f08f7d7bd58f84b11 (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Maintainer: Your Name <ryexander@gmail.com>
pkgname=airtime
pkgver=2.5.2.1
pkgrel=1
pkgdesc="Open broadcast software for scheduling and station management."
arch=('i686' 'x86_64')
url="http://www.sourcefabric.org/en/airtime"
license=('GPL3')
groups=()
depends=('php' 'php-gd' 'php-pear' 'zendframework' 'php-pgsql' 'php-apcu' 'php-apcu-bc'
'python' 'pyhton-virtualenv' 'python-pip'
'ocaml-soundtouch' 'ocaml-taglib' 'ocaml-ao' 'ocaml-mad' 'ocaml-camomile'
'ecasound' 'portaudio' 'libsamplerate' 'vo-aacenc'
'patch'
'mpg123' 'vorbisgain' 'pwgen' 'vorbis-tools' 'silan' 'lsof'
'libpulse' 'fadd2' 'alsa-utils'
'liquidsoap'
'coreutils' 'sudo'
'curl'
'opus' 'flac' 'lame'
'multitail'
'perl'
'ssl-cert'
'tar>=1.22' 'unzip' 'gzip>=1.3.12')
optdepends=('rabbitmq: localy hosted rabbitmq server'
'postgresql: localy hosted Database server'
'apache: Apache webserver (webserver needed)'
'nginx: Nginx webserver (webserver needed)')
makedepends=('git' 'python-setuptools')
provides=("${pkgname}")
conflicts=("${pkgname}")
replaces=()
backup=('etc/airtime/airtime.conf'
'etc/airtime/airtime.ini'
'etc/airtime/apache.vhost.tpl'
'etc/airtime/apache24.vhost.tpl'
'etc/logrotate.d/airtime-liquidsoap'
'etc/logrotate.d/airtime-php')
options=()
install=airtime.install
source=("${pkgname}::git+https://github.com/sourcefabric/Airtime.git#tag=airtime-${pkgver}"
'airtime-media-monitor.service'
'airtime-liquidsoap.service'
'airtime-playout.service'
'airtime.tmpfiles.conf')
noextract=()
sha256sums=('SKIP'
'8257cca5eef976ab9f42f0c6210b24c417b961ca4a05316da48a8ee306e2bf9a'
'e13f3a4e25d9ff732a1936d8e6c2301186096405bec0594f1590fc273b47e25d'
'349dd02f50d5bb283004954c1566055dc81f4972679861264b6fe88819208511'
'a95e7236ab741140cafdd987cf485395de6b997ad1241411c8e7fa731dfaa137')
#prepare() {
# cd "$srcdir/${pkgname%-git}"
#}
#
# build() {
# cd "$srcdir/${pkgname%-git}"
# }
#
#
# check() {
# cd "$srcdir/${pkgname%-git}"
# make -k check
# }
package() {
cd "$srcdir/${pkgname}"
web_user=http
# web frontend
mkdir -p "${pkgdir}/usr/share/airtime"
cp -r airtime_mvc "${pkgdir}/usr/share/airtime"
cp -r pyhton_apps "${pkgdir}/usr/share/airtime"
cp -r utils "${pkgdir}/usr/share/airtime"
chmod -R 755 "${pkgdir}/usr/share/airtime"
mkdir -p "${pkgdir}/usr/share/doc/airtime/examples/"
cp -r widgets "${pkgdir}/usr/share/doc/${pkgname}/examples/"
chmod -R 755 "${pkgdir}/usr/share/doc/${pkgname}/examples/"
install -D -m644 CREDITS "${pkgdir}/usr/share/doc/${pkgname}/CREDITS"
install -D -m644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
install -D -m644 changelog "${pkgdir}/usr/share/doc/${pkgname}/changelog"
install -D -m644 LICENSE "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
install -D -m644 LICENSE_3RD_PARTY "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_3RD_PARTY"
install -D -m644 "airtime.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/airtime.conf"
mkdir -p "${pkgdir}/var/tmp/airtime/show-recorder/"
install -D -m644 "airtime_mvc/build/airtime-php.logrotate" "${pkgdir}/etc/logrotate.d/airtime-php"
install -D -m644 "python_apps/pypo/pypo/liquidsoap_scripts/airtime-liquidsoap.logrotate" "${pkgdir}/etc/logrotate.d/airtime-liquidsoap"
mkdir -p "${pkgdir}/var/log/airtime"
chmod -R a+x "${pkgdir}/var/log/airtime"
chown -R ${web_user}:${web_user} "${pkgdir}/var/log/airtime"
mkdir -p "${pkgdir}/var/tmp/airtime"
chmod -R a+x "${pkgdir}/var/tmp/airtime"
chown -R ${web_user}:${web_user} "${pkgdir}/var/tmp/airtime"
mkdir -p "${pkgdir}/etc/airtime"
install -m 755 installer/php/airtime.ini "${pkgdir}/etc/airtime"
install -m 755 installer/apache/airtime-vhost "${pkgdir}/etc/airtime/apache.vhost.tpl"
install -m 755 installer/apache/airtime-vhost-2.4 "${pkgdir}/etc/airtime/apache24.vhost.tpl"
install -m 755 airtime_mvc/build/airtime.example.conf "${pkgdir}/etc/airtime/airtime.conf"
chown -R ${web_user}:${web_user} "${pkgdir}/etc/airtime"
install -m 755 airtime-media-monitor.service "${pkgdir}/usr/lib/systemd/system"
install -m 755 airtime-liquidsoap.service "${pkgdir}/usr/lib/systemd/system"
install -m 755 airtime-playout.service "${pkgdir}/usr/lib/systemd/system"
# python apps
python python_apps/std_err_override/setup.py install \
--root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin
python python_apps/api_clients/setup.py install \
--root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin
python python_apps/media-monitor/setup.py install \
--root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin
python python_apps/pypo/setup.py install \
--root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin
}
|