updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / revelation-hg / PKGBUILD
blob3133d4fc61538b3c896bd0071a86891a0c053aa1
1 # Contributor: Spider.007 / Sjon <archlinux.org@spider007.net>
3 pkgname=revelation-hg
4 pkgver=556
5 pkgrel=2
6 pkgdesc="Password manager for the GNOME 2 desktop"
7 arch=(i686 x86_64)
8 license=('GPL')
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"
16 _hgrepo=revelation
18 build() {
19   if `pacman -Qi packer &>/dev/null`
20   then
21     echo Cannot build when packer is installed, please uninstall and re-install afterwards
22         exit 3
23   fi
25   cp -R $srcdir/$_hgrepo $startdir/src/$_hgrepo-build
26   cd $startdir/src/$_hgrepo-build
28   ./autogen.sh
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
36   make
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