From f4cbb127d45017c14988b232dbae02bc2858c6df Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 18 Jan 2014 03:29:33 +0000 Subject: Sat Jan 18 03:25:57 UTC 2014 --- community/keepassx/PKGBUILD | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'community/keepassx') diff --git a/community/keepassx/PKGBUILD b/community/keepassx/PKGBUILD index 125273a78..1bc5acafe 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 # Contributor: Greg Bouzakis # Contributor: Alexander Fehr @@ -6,7 +6,7 @@ pkgname=keepassx pkgver=0.4.3 -pkgrel=5 +pkgrel=6 pkgdesc='Password manager' arch=('i686' 'x86_64') 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 ' 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 } -- cgit v1.2.3-54-g00ecf