# $Id: PKGBUILD 65675 2012-02-21 21:13:11Z cbrannon $
# Maintainer: Chris Brannon <chris@the-brannons.com>
pkgname=espeakup
pkgver=0.71
pkgrel=4
pkgdesc='Allows the Speakup screen review system to use the ESpeak synthesizer.'
arch=('i686' 'x86_64')
url="http://github.com/williamh/espeakup"
license=('GPL3')
source=("ftp://linux-speakup.org/pub/linux/goodies/${pkgname}-${pkgver}.tar.bz2"
        espeakup espeakup.conf.d)
md5sums=('03daa70b3db3f4f6fbb42c2ee428eda7'
         '7cf0abd493710ed924b7bb7c8d279fb3'
         '0f93974845b15efa12f5e7a74cc0eecd')
depends=(speakup-utils espeak)
backup=(etc/conf.d/espeakup)

build() {
  cd "$srcdir"
  install -m755 -D espeakup "${pkgdir}/etc/rc.d/espeakup"
  install -m644 -D espeakup.conf.d "${pkgdir}/etc/conf.d/espeakup"
  cd "$srcdir/$pkgname-$pkgver"

  make
  make DESTDIR="${pkgdir}" install 
}
