recipes: Rename 'pkghashtag' variable to 'pkgcategory'
[dragora.git] / recipes / tools / espeak / recipe
blobb15c3be283c48e7bde303d76790f5e2efd54dd09
1 # Build recipe for espeak.
3 # Copyright (c) 2018 Thiago Seus, <thiago.seus@yahoo.com.br>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=espeak
18 version=1.48.04
19 short_version=1.48
20 release=1
22 # Define a category for the output of the package name
23 pkgcategory=tools
25 tarname=${program}-${version}-source.zip
27 # Remote source(s)
28 fetch=http://downloads.sourceforge.net/project/espeak/espeak/espeak-${short_version}/$tarname
30 description="
31 Speech Synthesizer.
33 eSpeak is a compact, multi-language, text-to-speech synthesizer.
36 homepage=http://espeak.sourceforge.net
37 license=GPLv3+
39 # Source documentation
40 docs="ChangeLog.txt License.txt ReadMe docs/"
41 docsdir="${docdir}/${program}-${version}"
43 # The package has a custom source directory
44 srcdir=${program}-${version}-source
46 build()
48     set -e
50     unpack "${tardir}/$tarname"
52     cd "$srcdir/src"
54     # Use the PortAudio (sound interface library) version 19
55     ln -sf portaudio19.h portaudio.h
57     make -j${jobs} CXXFLAGS="$QICXXFLAGS -Wno-narrowing" LDFLAGS="$QILDFLAGS" \
58      PREFIX=/usr LIBDIR=/usr/lib${libSuffix}
60     make -j${jobs} PREFIX=/usr LIBDIR=/usr/lib${libSuffix} \
61      DESTDIR="$destdir" install
63     cd ..
65     # Copy documentation
66     mkdir -p "${destdir}${docsdir}"
67     cp -p -r $docs "${destdir}${docsdir}"
69     # Rename docs/ directory for the package
70     mv "${destdir}${docsdir}/docs" "${destdir}${docsdir}/html"