1 # Maintainer: bzt <unmacaque (at) gmail.com>
2 pkgname='firefox-gnome-keyring-git'
5 pkgdesc="Gnome-keyring integration for Firefox"
7 url='http://github.com/nougad/firefox-gnome-keyring'
9 depends=('firefox>=9.0' 'gnome-keyring')
10 makedepends=('git' 'zip' 'unzip' 'xulrunner>=9.0')
11 provides=('firefox-gnome-keyring')
13 _gitroot="git://github.com/nougad/firefox-gnome-keyring.git"
14 _gitname="firefox-gnome-keyring"
19 msg "Connecting to GIT server...."
20 if [ -d ${srcdir}/${_gitname} ]; then
21 cd ${srcdir}/${_gitname}
23 msg2 "The local files are updated."
25 git clone ${_gitroot} ${_gitname}
28 msg "GIT checkout done or server timeout."
29 msg "Starting make ${pkgname} for ${CARCH}..."
30 if [ -d ${srcdir}/${_gitname}-build ]; then
31 msg2 "Cleaning build directory..."
32 rm -rf ${srcdir}/${_gitname}-build
35 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
36 cd ${srcdir}/${_gitname}-build
38 msg "Building extension..."
44 cd ${srcdir}/${_gitname}-build
46 mkdir -p ${pkgdir}/usr/lib/firefox/extensions
47 unzip ${srcdir}/${_gitname}-build/gnome-keyring_password_integration-*.xpi -d ${pkgdir}/usr/lib/firefox/extensions/{6f9d85e0-794d-11dd-ad8b-0800200c9a66}