updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / muttator / PKGBUILD
blobd30c034b5cc47a37a928dde858fceccf727109b1
1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: Dave Nguyen <diendien@gmail.com>
4 pkgname=muttator
5 pkgver=latest_snapshot #this is a modified version of 0.6 that works with tb-3.1
6 pkgrel=2
7 pkgdesc="Make Thunderbird look and behave like Vim"
8 url="http://vimperator.org/muttator"
9 arch=('i686' 'x86_64')
10 license=("MIT")
11 depends=("thunderbird>=3.0")
12 source=(http://vimperator-labs.googlecode.com/files/${pkgname}-${pkgver/_/-}.xpi)
13 md5sums=('6e1285ac5a0ebb50b47174064132050b')
15 build() {
16   cd ${srcdir}
17   #define extension id and grab version number
18   _extensionId="muttator@mozdev.org"
19   _thunderbirdVersion=`thunderbird -v |cut -d' ' -f3`
20   _thunderbirdVersion=${_thunderbirdVersion%.*}
22   mkdir -p ${pkgdir}/usr/lib/thunderbird-${_thunderbirdVersion}/extensions/${_extensionId}
23   install -Dm644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/License.txt
24   rm ${pkgname}-${pkgver/_/-}.xpi
25   rm License.txt
27   #fix permissions
28   find -type d -exec chmod 0755 \{\} \+
29   find -type f -exec chmod 0644 \{\} \+
31   cp -R * ${pkgdir}/usr/lib/thunderbird-${_thunderbirdVersion}/extensions/${_extensionId}
34 # vim:set ts=2 sw=2 et: