summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7198b7ac4076cc4e844296b20ba6ea027c5e85e0 (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
# Maintainer: 0b100100 <0b100100 at protonmail dot ch>
# Contributor: Denis Kasak <dkasak|AT|termina.org.uk>

pkgname=ekho
pkgver=8.6
pkgrel=1
pkgdesc="Multilingual text-to-speech (TTS) software for Cantonese, Mandarin, Toisanese, Zhaoan Hakka, Tibetan, Ngangien, Korean and English"
arch=('i686' 'x86_64')
url="https://www.eguidedog.net/ekho.php"
license=('GPL')
depends=('espeak-ng' 'lame' 'festival')
source=("https://downloads.sourceforge.net/e-guidedog/ekho-$pkgver.tar.xz")
sha512sums=('cca7b95efe04fa377bec557c792bf6c7788caf5c0275c00979c20fd8c8acd20193c9968499ab3c1f3ee4bb29b0b43eabafd154d7a76ee87971430c1ea890ea39')

prepare() {
  cd "$pkgname-$pkgver"

  CXXFLAGS="$CXXFLAGS -fopenmp"
  if [ "$CARCH" == "x86_64" ]; then
    CXXFLAGS="$CXXFLAGS -D_x86_64"
  fi

  # fix undefined references to tget* functions
  sed -ie \
    's/^\(\s*LIB_FESTIVAL=.*\)-lncurses\(.*\)/\1-Wl,--push-state,--no-as-needed,-lncurses,--pop-state\2/' \
    configure

  CXXFLAGS="$CXXFLAGS" \
  LDFLAGS="$LDFLAGS" \
  ./configure --prefix=/usr --with-mp3lame --enable-festival
}

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: