# Contributor: Storm Dragon pkgname=talking-clock-git pkgver=2 pkgrel=1 pkgdesc="Highly configurable clock written in bash with soundpack and voice options." arch=('any') url="http://github.com/stormdragon2976/talking-clock" license=('GPL2') depends=('bash') makedepends=('git') optdepends=('espeak: TTS support' 'festival: TTS support' 'speech-dispatcher: TTS support' 'svox-pico-git: TTS support' 'pulseaudio: Chime sound support' 'sox: Chime sound support' 'vorbis-tools: Chime sound support' 'yad: for talking-clock-gui to work') _gitroot="git://github.com/stormdragon2976/talking-clock.git" _gitname="talking-clock" build() { msg "Connecting to the Git repository..." if [[ -d "$srcdir/$_gitname" ]] ; then cd "$_gitname" git pull origin msg "The local files are updated" else git clone --depth 1 $_gitroot fi } package() { msg "Starting to build the package..." cd "$srcdir/$_gitname" install -d "$pkgdir/usr/bin" install -d "$pkgdir/usr/share/talking-clock" install -m755 "src/talking-clock" "$pkgdir/usr/bin" install -m755 "talking-clock-gui/talking-clock-gui" "$pkgdir/usr/bin" install -m666 "README" "$pkgdir/usr/share/talking-clock" install -m666 "src/bell.ogg" "$pkgdir/usr/share/talking-clock" } # vim:set ts=2 sw=2 et: