updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / esteid-browser-plugin-svn / PKGBUILD
blobe830c3355264e51751ed2286ff83a8e6a73cb38f
1 # Maintainer: kevku <kevku@gmx.com>
2 pkgname=esteid-browser-plugin-svn
3 _browser=firefox
4 pkgver=3908
5 pkgrel=1
6 pkgdesc="Estonian ID-card Firefox plugin & extension (Community dev version)"
7 arch=('x86_64' 'i686')
8 url="http://code.google.com/p/esteid"
9 license=('LGPL')
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}
19 build() {
20   cd "$srcdir/"
21   
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)
24   else
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
28   fi
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
38   make
41 package() {
42   cd "$srcdir/plugin-build/"
43   make DESTDIR="$pkgdir/" install
44   local dstdir=$pkgdir/usr/lib/$_browser/extensions/\{aa84ce40-4253-11da-8cd6-0800200c9a66\}/
45   install -d $dstdir
46   unzip projects/esteid/*.xpi -d $dstdir