### this file is sourced not run
PKGVER=0.4.4 # note: we use this version as 2.0.0 - 2.0.3 crashes
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=keepassx-$PKGVER.tar.gz
MD5SUM=6022ffe1e2c59fc6f1a47544417bb0b5
SRC_URL=https://www.keepassx.org/releases/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=qt4-common
SLACKDESC="keepassx: keepassx $PKGVER (Password manager)  
keepassx:  
keepassx: KeePassX saves many different information e.g. user names, 
keepassx: passwords, urls, attachments and comments in one single database. 
keepassx: User-defined titles and icons can be specified for each single 
keepassx: entry. Entries are sorted in groups and are customizable. It has an 
keepassx: integrated search function. It can also generate secure passwords. 
keepassx: The entire database is always encrypted, either with AES or with 
keepassx: Twofish. The database format is compatible with KeePass Password 
keepassx: Safe.  
keepassx: http://www.keepassx.org/ 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/keepassx* &&
	patch -Np1 -i ../pkg/missing-unistd.patch
}

### default pkg_package
### build
pkg_build() {
	# qt4
	export PATH="$PATH:/opt/qt4/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt4/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt4/$LIBDIR/pkgconfig"
	export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/opt/qt4/include"
	export QT4_PATH="/opt/qt4/bin"
	export QT4_LD_LIBRARY_PATH="/opt/qt4/$LIBDIR"
	export QT4_PKG_CONFIG_PATH="/opt/qt4/$LIBDIR/pkgconfig"
	export QT4_CPLUS_INCLUDE_PATH="/opt/qt4/include" 	

	pkg_build_cmake &&
	pkg_build_slackdesc
}


