Skip to content

Instantly share code, notes, and snippets.

@izahn
Created May 3, 2016 20:34
Show Gist options
  • Save izahn/ebe20f8968fe829a420d0384babdd322 to your computer and use it in GitHub Desktop.
Save izahn/ebe20f8968fe829a420d0384babdd322 to your computer and use it in GitHub Desktop.
emacspeak 44 package build for Archlinux
# Maintainer: Steve Holmes <steve.holmes88@gmail.com>
# Contributers: Chris Brannon <cmbrannon79@gmail.com>
pkgname=emacspeak
pkgver=44.0
pkgrel=1
pkgdesc="Emacs extension that provides spoken output"
arch=('i686' 'x86_64')
url="https://github.com/tvraman/emacspeak"
license=('GPL' 'LGPL' 'APACHE')
depends=('emacs' 'tcl' 'tclx' 'espeak')
optdepends=('eflite: software speech via the FLite TTS engine'
'python: Google client, and wrapper for Emacspeak speech servers.')
install='emacspeak.install'
source=("https://github.com/tvraman/emacspeak/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('e30f167b71c991b3f40cb6d9db02f81a')
prepare() {
export DTK_PROGRAM="espeak"
cd "$srcdir/$pkgname-$pkgver"
sed -i -e 's|/etc/info-dir|$(DESTDIR)/etc/info-dir|g' info/Makefile
rm -f lisp/g-client/*.elc
rm -f sounds/default-8k/*.elc
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make config
make
# Espeak isn't compiled by default, but lots of folks use it.
cd "${srcdir}/${pkgname}-${pkgver}/servers/linux-espeak"
make
touch "${srcdir}/${pkgname}-${pkgver}/servers/linux-outloud/atcleci.so"
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make prefix="${pkgdir}/usr" install
gzip -9nf ${pkgdir}/usr/share/info/*
rm -f "$pkgdir/usr/share/info/dir"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment