blob: 4cbffbe17f799126e8636dd8178b7eed4324048d (
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
|
pkgname=rhvoice-git
pkgver=20180917
pkgrel=1
pkgdesc="Free and open source speech synthesizer for Russian and other languages"
arch=('i686' 'x86_64')
url="https://github.com/Olga-Yakovleva/RHVoice"
license=('GPL3')
depends=('libpulse' 'libao' 'portaudio' 'glibmm')
makedepends=('git' 'scons')
optdepends=('alsa-utils: for using aplay'
'rhvoice-dictionary-git: extended russian dictionary')
provides=('rhvoice')
replaces=('rhvoice')
backup=('etc/RHVoice/RHVoice.conf')
_gitroot='https://github.com/Olga-Yakovleva/RHVoice.git'
_gitname='RHVoice'
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git checkout SConstruct && git pull origin
msg "The local files are updated."
else
git clone --depth 1 "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg2 "Patching source"
cd "${srcdir}"
for p in ../*.patch; do
msg2 "Applying patch: $p"
patch -p1 -i "$p" --binary
done
msg "Starting build..."
cd "$srcdir/$_gitname"
scons prefix="/usr" sysconfdir="/etc" || return 1
}
package() {
echo "Installing package"
cd "$srcdir/$_gitname"
mkdir -p ${pkgdir}{/usr/bin/,/etc/RHVoice,/usr/lib/,/usr/include,/usr/share/RHVoice,/usr/lib/speech-dispatcher-modules}
install -D build/linux/service/RHVoice{-service,-client} "${pkgdir}/usr/bin/"
install -D build/linux/test/RHVoice-test "${pkgdir}/usr/bin/"
install -D build/linux/sd_module/sd_rhvoice "${pkgdir}/usr/lib/speech-dispatcher-modules/"
install -D -m 644 config/RHVoice.conf "${pkgdir}/etc/RHVoice/"
cp -R config/dicts/ "$pkgdir/etc/RHVoice/"
install -m 644 build/linux/lib/libRHVoice.so "${pkgdir}/usr/lib"
install -m 644 build/linux/core/libRHVoice_core.so "${pkgdir}/usr/lib"
install -m 644 build/linux/audio/libRHVoice_audio.so "${pkgdir}/usr/lib"
install -m 644 src/include/RHVoice.h "${pkgdir}/usr/include/"
cp -R data/* "${pkgdir}/usr/share/RHVoice"
rm "${pkgdir}/usr/share/RHVoice/SConscript"
}
|