1 # Maintainer: Thomas Hebb <tommyhebb@gmail.com>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
6 pkgdesc="A password manager for the GNOME desktop"
9 depends=('gnome-python>=2.10' 'pycrypto>=1.9' 'cracklib'
10 'desktop-file-utils' 'python2' 'hicolor-icon-theme')
11 makedepends=('intltool')
12 install=revelation.install
13 url="http://revelation.olasagasti.info/"
14 source=(https://bitbucket.org/erikg/revelation/downloads/revelation-${pkgver}.tar.bz2
16 md5sums=('26a8cdfb623010d7f7a719d1b7dfe1c5'
17 'e3598e9712f6db5d1feef922e009dc79')
20 cd "${srcdir}/${pkgname}-${pkgver}"
21 patch -Np1 -i "${srcdir}/packer.patch"
23 PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
24 --libexecdir=/usr/lib/revelation \
25 --localstatedir=/var \
26 --disable-mime-update --disable-desktop-update \
27 --with-python-include=/usr/include/python2.7
29 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
31 sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
32 $pkgdir/usr/bin/revelation \
33 $pkgdir/usr/lib/python2.7/site-packages/revelation/bundle/PBKDFv2.py
36 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
37 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain revelation ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
38 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas