updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / firefox-extension-firebug-svn / PKGBUILD
blob685134c5375650dcd423ce960c73899e715cb3e8
1 # Contributer: N30N <archlinux@alunamation.com>
3 pkgname=firefox-extension-firebug-svn
4 pkgver=788
5 pkgrel=2
6 pkgdesc="SVN version of the firebug extention for firefox"
7 url="http://getfirebug.com/"
8 license="BSD"
9 arch=("i686" "x86_64")
10 depends=("firefox>=3.0")
11 makedepends=("subversion" "apache-ant")
12 provides=("firefox-extension-firebug")
13 source=()
14 md5sums=()
16 _svntrunk="http://fbug.googlecode.com/svn/branches/firebug1.2/"
17 _svnmod="firebug"
19 build() {
20         cd ${srcdir}
21         msg "Connecting to firebug SVN server......."
22         if [ -d ${_cvsmod}/.svn ]; then
23                 (cd ${_cvsmod} && svn update -r ${pkgver})
24         else
25                 svn co ${_svntrunk} ${_svnmod} --config-dir ./ -r ${pkgver}
26         fi
28         if [ -e ${_svnmod}/dist ]; then
29                 rm -rf ${_svnmod}/{dist,build}
30         fi
32         msg "Starting build process."
33         (cd ${_svnmod} && ant) || return 1
35         mkdir -p ${pkgdir}/usr/lib/firefox-3.0/extensions
36         unzip ${_svnmod}/dist/firebug*.xpi -d ${pkgdir}/usr/lib/firefox-3.0/extensions/firebug@software.joehewitt.com
38         msg "If you'd prefer the package in xpi format, it can be found in the following directory"
39         msg2 "${srcdir}/${_svnmod}/dist"