updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-extension-fireftp / PKGBUILD
blob060b65f3e646f38ad4adca1eb3c59a694989dad9
1 # Maintainer: Tianjiao Yin <ytj000+aur@gmail.com>
3 _plugin_name=fireftp
4 _plugin_version=2.0
5 _plugin_id=684
6 pkgdesc="Plugin for firefox. A free, secure, cross-platform FTP/SFTP client for Mozilla Firefox."
7 license=('MPL')
9 pkgname=firefox-extension-$_plugin_name
10 pkgver=$_plugin_version
11 pkgrel=1
12 arch=('any')
13 url="https://addons.mozilla.org/firefox/addon/$_plugin_id"
14 depends=("firefox>=8.0" "firefox<11.0")
15 source=("https://addons.mozilla.org/firefox/downloads/file/137964/fireftp-2.0-fx.xpi")
17 build() {
18   cd $srcdir
19   emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1
20   local dstdir=$pkgdir/usr/lib/firefox/extensions/${emid}
21   install -d $dstdir
22   sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>10.*</em:maxVersion>#' install.rdf
23   rm *.xpi
24   mv * $dstdir
26 md5sums=('d58a0670b4ee18f82e94b082bdfb79ff')