updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / revelation / PKGBUILD
blob439f9e61163db901c805c9918434e34cd180cfc1
1 # Maintainer: Thomas Hebb <tommyhebb@gmail.com>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 pkgname=revelation
4 pkgver=0.4.12
5 pkgrel=1
6 pkgdesc="A password manager for the GNOME desktop"
7 arch=('i686' 'x86_64')
8 license=('GPL')
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
15         packer.patch)
16 md5sums=('26a8cdfb623010d7f7a719d1b7dfe1c5'
17          'e3598e9712f6db5d1feef922e009dc79')
19 build() {
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
28   make
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