summaryrefslogtreecommitdiff
path: root/community/keepassx/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/keepassx/PKGBUILD')
-rw-r--r--community/keepassx/PKGBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/community/keepassx/PKGBUILD b/community/keepassx/PKGBUILD
index 36ac427e8..3383462e8 100644
--- a/community/keepassx/PKGBUILD
+++ b/community/keepassx/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 101314 2013-11-22 17:06:59Z spupykin $
+# $Id: PKGBUILD 104304 2014-01-17 11:43:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Greg Bouzakis <gregbouzakis@gmail.com>
# Contributor: Alexander Fehr <pizzapunk gmail com>
@@ -6,7 +6,7 @@
pkgname=keepassx
pkgver=0.4.3
-pkgrel=5
+pkgrel=6
pkgdesc='Password manager'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.keepassx.org'
@@ -17,15 +17,19 @@ install=keepassx.install
source=(http://downloads.sourceforge.net/keepassx/$pkgname-$pkgver.tar.gz)
md5sums=('1df67bb22b2e08df49f09e61d156f508')
-build() {
- cd $srcdir/$pkgname-$pkgver
+prepare() {
+ cd $pkgname-$pkgver
sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
+ find -name '*.png' -exec optipng -quiet -force -fix {} \;
+}
+
+build() {
+ cd $pkgname-$pkgver
qmake-qt4
make
- find -name '*.png' -exec optipng -quiet -force -fix {} \;
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make INSTALL_ROOT=$pkgdir install
+ cd $pkgname-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
}