summaryrefslogtreecommitdiff
path: root/community/keepassx
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-17 01:32:38 -0800
committerroot <root@rshg054.dnsready.net>2012-11-17 01:32:38 -0800
commit071ecd58a9b69020ec170e7f89009a603e885371 (patch)
treec32fc487de5e9afc5bb12c053775982fdd2c6b7d /community/keepassx
parent99c34471cedb5de3afae4e33c48239abbe1410c7 (diff)
Sat Nov 17 01:27:29 PST 2012
Diffstat (limited to 'community/keepassx')
-rw-r--r--community/keepassx/PKGBUILD29
-rw-r--r--community/keepassx/keepassx.install12
2 files changed, 30 insertions, 11 deletions
diff --git a/community/keepassx/PKGBUILD b/community/keepassx/PKGBUILD
index 2aff4dcf8..4ccc62899 100644
--- a/community/keepassx/PKGBUILD
+++ b/community/keepassx/PKGBUILD
@@ -1,22 +1,29 @@
-# $Id: PKGBUILD 65610 2012-02-21 09:36:40Z spupykin $
-# Maintainer: Alexander Fehr <pizzapunk gmail com>
+# $Id: PKGBUILD 80120 2012-11-16 16:43:09Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Greg Bouzakis <gregbouzakis@gmail.com>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Philipp Giebel <arch@ambience-design.net>
pkgname=keepassx
pkgver=0.4.3
-pkgrel=2
-pkgdesc="Cross platform password manager"
+pkgrel=3
+pkgdesc='Password manager'
arch=('i686' 'x86_64')
-url="http://www.keepassx.org/"
+url='http://www.keepassx.org'
license=('GPL2')
-depends=('qt' 'libxtst')
-source=(http://downloads.sourceforge.net/keepassx/keepassx-$pkgver.tar.gz)
+depends=('libxtst' 'qt' 'shared-mime-info')
+install=keepassx.install
+source=(http://downloads.sourceforge.net/keepassx/$pkgname-$pkgver.tar.gz)
md5sums=('1df67bb22b2e08df49f09e61d156f508')
build() {
- cd "$srcdir/keepassx-$pkgver"
+ cd $srcdir/$pkgname-$pkgver
+ sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
+ qmake
+ make
+}
- qmake PREFIX=/usr
- make
- make INSTALL_ROOT="$pkgdir" install
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make INSTALL_ROOT=$pkgdir install
}
diff --git a/community/keepassx/keepassx.install b/community/keepassx/keepassx.install
new file mode 100644
index 000000000..6210bd0ab
--- /dev/null
+++ b/community/keepassx/keepassx.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}