1 # Maintainer: Christofer Odén <bei.oden@gmail.com>
7 pkgdesc="Teledactyl is a fork of Muttator, an add-on for the Thunderbird mail client, which makes it look and behave like the Vim text editor."
9 url="http://dactyl.sourceforge.net/teledactyl"
11 depends=('thunderbird>=3.5')
12 makedepends=('mercurial')
14 _hgroot="https://dactyl.googlecode.com/hg/"
21 if [ -d ${_hgrepo} ]; then
22 msg "Updating from repo..."
29 hg clone ${_hgroot}${_hgrepo} || return 1
35 msg "Mercurial checkout done"
36 msg "Starting make..."
38 rm -rf "$srcdir/$_hgrepo-build"
39 cp -R "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
45 cd "$srcdir/$_hgrepo-build"
47 make -C teledactyl xpi || return 1
51 cd "$srcdir/$_hgrepo-build/teledactyl"
53 local _emid=$(awk 'BEGIN {FS="[\"]"}; /em:id/ {print $2; exit}' install.rdf)
54 local _tbver=$(thunderbird -v | cut -d' ' -f3)
55 local dstdir="$pkgdir/usr/lib/thunderbird-$_tbver/extensions/$_emid"
58 cd "$srcdir/$_hgrepo-build/downloads/"
59 bsdtar -xf teledactyl-$pkgver.xpi
60 rm $_basename-$pkgver.xpi
64 # vim:set ts=2 sw=2 et: