1 # Maintainer: kevku <kevku@gmx.com>
2 pkgname=esteid-browser-plugin-svn
6 pkgdesc="Estonian ID-card Firefox plugin & extension (Community dev version)"
8 url="http://code.google.com/p/esteid"
10 depends=('boost-libs' 'smartcardpp-svn' 'firefox>=7.0' 'gtkmm')
11 makedepends=('cmake' 'subversion' 'zip' 'unzip' 'boost')
12 conflicts=('sk-esteidpkcs11loader-svn' 'sk-esteidfirefoxplugin-svn')
13 source=("http://firebreath.googlecode.com/files/firebreath-1.5.2.tar.bz2")
14 md5sums=('14e5854f90655f87eddf6d0d5f735f46')
16 _svntrunk=https://esteid.googlecode.com/svn/${pkgname%-svn}/trunk
17 _svnmod=${pkgname%-svn}
22 if [ -d $srcdir/firebreath-1.5.2/projects/$_svnmod/.svn ]; then
23 (cd $srcdir/firebreath-1.5.2/projects/$_svnmod && svn up -r $pkgver)
25 mkdir $srcdir/firebreath-1.5.2/projects
26 cd "$srcdir/firebreath-1.5.2/projects"
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/plugin-build"
34 cp -r "$srcdir/firebreath-1.5.2" "$srcdir/plugin-build"
35 cd "$srcdir/plugin-build/"
36 sed -i 's|(bits == 64) ? "/usr/lib64/" :||g' projects/esteid-browser-plugin/Mozilla/chrome/content/config.js
37 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX="" -DWITH_SYSTEM_BOOST=YES -DSYSCONF_INSTALL_DIR=/etc
42 cd "$srcdir/plugin-build/"
43 make DESTDIR="$pkgdir/" install
44 local dstdir=$pkgdir/usr/lib/$_browser/extensions/\{aa84ce40-4253-11da-8cd6-0800200c9a66\}/
46 unzip projects/esteid/*.xpi -d $dstdir