#Maintainer: Dimitris Jemos #Mandatory pkgname=keepassx pkgver=0.4.3 pkgrel=1dj source=(http://dfn.dl.sourceforge.net/sourceforge/keepassx/$pkgname-$pkgver.tar.gz) #Optional docs=("copying" "install") url=http://www.keepassx.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "keepassx - cross-platform password management utility" "KeePassX is an application for people with extremly high demands on" "secure personal data management. It has a light interface, is cross" "platform and published under the terms of the GNU General Public" "License." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi cd $startdir/src/$pkgname-$pkgver export INSTALL_ROOT=$startdir/pkg /usr/lib${LIBDIRSUFFIX}/qt/bin/qmake PREFIX=/usr QMAKE_CFLAGS="$CFLAGS" QMAKE_CXXFLAGS="$CXXFLAGS" make -j $threadcount || return 1 make install for size in 16 24 32 48 64; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps convert $startdir/pkg/usr/share/pixmaps/keepassx.xpm -scale $size $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/keepassx.png done } # Doinst doinst() { # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi }