updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / firefox-extension-gnome-keyring-git / PKGBUILD
blobc155ba72fede474dfb9617082017940935600971
1 # Maintainer: Michal Gawronski <dinth1906@gmail.com>
2 pkgname='firefox-extension-gnome-keyring-git'
3 pkgver=20100629
4 pkgrel=3
5 pkgdesc="Gnome-keyring integration for Firefox"
6 arch=('i686' 'x86_64')
7 url='http://github.com/nougad/firefox-gnome-keyring'
8 license=('GPL')
9 depends=('firefox>=3.6')
10 makedepends=('git' 'zip' 'unzip')
11 optdepends=()
12 provides=('firefox-extension-gnome-keyring')
13 conflicts=()
14 source=(makefile.patch)
15 md5sums=('2c3c4a7c864019037a697366ceb3918f')
16 _gitroot="git://github.com/nougad/firefox-gnome-keyring.git"
17 _gitname="firefox-gnome-keyring"
19 build()
21     cd ${srcdir}/
23     msg "Connecting to the GIT server...."
24     if [[ -d ${srcdir}/${_gitname} ]] ; then
25         cd ${_gitname}
26         git pull origin
27         msg "The local files are updated..."
28     else
29         git clone ${_gitroot}
30     fi
31     
32     msg "GIT checkout done."
34     msg "Starting make for: ${pkgname}"
35     
36     if [[ -d ${srcdir}/${_gitname}-build ]]; then
37        msg "Cleaning the previous build directory..." 
38        rm -rf ${srcdir}/${_gitname}-build
39     fi
41     cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
42    
44     cd ${srcdir}/${_gitname}-build
45     patch -p1 < ../makefile.patch
46     make || return 1
48         mkdir -p ${pkgdir}/usr/lib/firefox-3.6/extensions
49         unzip ${srcdir}/${_gitname}-build/gnome-keyring_password_integration-0.3.xpi -d ${pkgdir}/usr/lib/firefox-3.6/extensions/{6f9d85e0-794d-11dd-ad8b-0800200c9a66}
52     msg "If you'd prefer the package in xpi format, it can be found in the following directory"
53     msg2 "${srcdir}/${_gitname}/"