summaryrefslogtreecommitdiff
path: root/community/keysafe
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/keysafe
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/keysafe')
-rw-r--r--community/keysafe/PKGBUILD32
-rw-r--r--community/keysafe/keysafe.install22
2 files changed, 54 insertions, 0 deletions
diff --git a/community/keysafe/PKGBUILD b/community/keysafe/PKGBUILD
new file mode 100644
index 000000000..769cf6a6e
--- /dev/null
+++ b/community/keysafe/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 30798 2010-10-21 09:25:54Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Magnus Therning <magnus@therning.org>
+
+pkgname=keysafe
+pkgver=0.5
+pkgrel=1
+pkgdesc="A safe place to keep your passwords"
+arch=('i686' 'x86_64')
+url="http://therning.org/magnus/computer/keysafe/"
+license=('GPL')
+depends=('gnome-python' 'boost-libs' 'botan')
+makedepends=('boost' 'cython')
+install=keysafe.install
+options=(force !libtool !emptydirs)
+source=($pkgname-$pkgver.tar.gz::http://github.com/magthe/keysafe/tarball/v$pkgver)
+md5sums=('f21921888a5ea5483dd849e2a5ed924d')
+
+build() {
+ cd ${srcdir}/magthe-keysafe*
+ ./waf configure --prefix=/usr
+ ./waf build
+}
+
+package() {
+ cd ${srcdir}/magthe-keysafe*
+ ./waf --destdir=${pkgdir} install
+ install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
+ gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas
+ rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
+ rm -f ${pkgdir}/usr/etc/gconf/schemas/*.schemas
+}
diff --git a/community/keysafe/keysafe.install b/community/keysafe/keysafe.install
new file mode 100644
index 000000000..b650e8e97
--- /dev/null
+++ b/community/keysafe/keysafe.install
@@ -0,0 +1,22 @@
+pkgname=keysafe
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+ update-desktop-database -q
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ update-desktop-database -q
+}