# Contributor: Storm Dragon <a...@stormdragon.us>
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:
Hi,
Here is take 3 lol. Hopefully I got it all this time. I had the cd in the wrong 
function.
Thanks for all the help
Storm
On Mon, Nov 12, 2012 at 03:12 PM, Jesse Juhani Jaara <jesse.ja...@gmail.com> 
wrote:

> from: Jesse Juhani Jaara <jesse.ja...@gmail.com>
> date: Mon, Nov 12 10:12 PM +02:00 2012
> to: aur-general@archlinux.org
> reply-to: "Discussion about the Arch User Repository \(AUR\)" 
> <aur-general@archlinux.org>
> subject: Re: [aur-general] PKGBUILD for talking-clock
> 
> I think the name could have that -git into it. Like most git packages
> do. Also instaed of https:// or http:// git urls should use git:// if
> avaiable and girhub provides that so use it instead.
> 
> Also in the package() function you need to cd into the apps
> sourcedirectory 
> 
> Also add the ""'s to the install commands.
-- 
Registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.us/
How many Internet mail list subscribers does it take to change a lightbulb? 
http://goo.gl/eO4PJ
"Mighty Elric, Mightier Sword. Sorcerer and Swordsman, slayer of kin, Lord of a 
dying race. King of ruin, dragon master, Champion of Doom."
Domine - Chronicles of the Black Sword

Reply via email to