Skip to content

Instantly share code, notes, and snippets.

@dkasak
Created February 19, 2020 13:53
Show Gist options
  • Save dkasak/4f4d305b27d04f4eefbdd3a2847d30d3 to your computer and use it in GitHub Desktop.
Save dkasak/4f4d305b27d04f4eefbdd3a2847d30d3 to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index ce46d58..bcd9e0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,22 +7,28 @@ pkgdesc="Chinese text-to-speech (TTS) software for Cantonese, Mandarin, Zhaoan H
arch=('i686' 'x86_64')
url="http://www.eguidedog.net/ekho.php"
license=('GPL')
+makedepends=('automake' 'autoconf')
depends=('libpulse' 'lame' 'festival' 'ncurses' 'espeak')
-source=("http://downloads.sourceforge.net/e-guidedog/ekho-${pkgver}.tar.xz")
-md5sums=('dadf0739fe6a67e5a1de03750b23a4a7')
+source=("http://downloads.sourceforge.net/e-guidedog/ekho-${pkgver}.tar.xz"
+ "configure.ac.diff")
+md5sums=('dadf0739fe6a67e5a1de03750b23a4a7'
+ 'b16853a626c40a139a359736cf9fb36d')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ # fix directory permissions
+ find "ekho-data" -type d -exec chmod o+r {} +
+
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/' \
- $srcdir/$pkgname-$pkgver/configure
+ patch -p0 <"${srcdir}/configure.ac.diff"
+ aclocal
+ autoconf
+ automake
./configure --prefix=/usr --with-mp3lame --enable-festival
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment