1 # Contributor: Spider.007 / Sjon <archlinux.org@spider007.net>
6 pkgdesc="Password manager for the GNOME 2 desktop"
9 makedepends=('mercurial' 'intltool')
10 conflicts=('revelation')
11 depends=('gnome-python-desktop>=2.28.0' 'pycrypto>=2.0.1-3' 'gnome-panel>=2.28.0' 'cracklib' 'desktop-file-utils' 'hicolor-icon-theme' 'python2' ' dbus-python')
12 install=revelation.install
13 url="http://oss.codepoet.no/revelation/"
15 _hgroot="https://bitbucket.org/erikg"
19 if `pacman -Qi packer &>/dev/null`
21 echo Cannot build when packer is installed, please uninstall and re-install afterwards
25 cp -R $srcdir/$_hgrepo $startdir/src/$_hgrepo-build
26 cd $startdir/src/$_hgrepo-build
29 sed -i -e 's/gnome-python-extras/gnome-python-desktop/g' configure
31 PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
32 --libexecdir=/usr/lib/revelation \
33 --localstatedir=/var \
34 --disable-mime-update --disable-desktop-update \
35 --with-python-include=/usr/include/python2.7
37 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
39 sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
40 $pkgdir/usr/bin/revelation \
41 $pkgdir/usr/lib/python2.7/site-packages/revelation/bundle/PBKDFv2.py
43 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
44 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain revelation ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
45 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas