[aur-general] pkgversion() not working

Storm Dragon stormdragon2976 at gmail.com
Sat Jun 7 12:04:41 EDT 2014


Hi,
I was trying to update my PKGBUILD for talking-clock to get the version from git, but it keeps failing and saying the directory doesn't exist. When I check though, the directory does exist. Can someone please take a look and tell me what I have done wrong?
Thanks
Storm
-- 

-- 
Registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.us/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
My Blackberry is Broken: http://is.gd/my_blackberry_is_broken
"gimme gimme shock treatment! I wanna wanna shock treatment!"
Ramones - Gimme Gimme Shock Treatment
-------------- next part --------------
# Contributor: Storm Dragon <stormdragon2976 at gmail.com>
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'
	'torsocks: Get temperature information anonymously using torify'
'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

}

pkgver()
{
  cd "$srcdir/$_gitname"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
 
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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/aur-general/attachments/20140607/e87b0b8e/attachment.asc>


More information about the aur-general mailing list