# $Id: PKGBUILD 104304 2014-01-17 11:43:02Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Greg Bouzakis # Contributor: Alexander Fehr # Contributor: Philipp Giebel pkgname=keepassx pkgver=0.4.3 pkgrel=6 pkgdesc='Password manager' arch=('i686' 'x86_64') url='http://www.keepassx.org' license=('GPL2') depends=('libxtst' 'qt4' 'shared-mime-info') makedepends=('optipng') install=keepassx.install source=(http://downloads.sourceforge.net/keepassx/$pkgname-$pkgver.tar.gz) md5sums=('1df67bb22b2e08df49f09e61d156f508') 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 } package() { cd $pkgname-$pkgver make INSTALL_ROOT="$pkgdir" install }