diff options
author | fdeak <ferenc.deak@gmail.com> | 2010-05-13 00:39:16 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:39:16 +0200 |
commit | 4b22b73ef385529304ab90d7ebe42c27e4fc0000 (patch) | |
tree | 137e639588923df615b59e893c27881973982779 /office/keepassx/keepassx.SlackBuild | |
parent | 564acca38a6a24e8b3233e98accdc21ad6c18a93 (diff) | |
download | slackbuilds-4b22b73ef385529304ab90d7ebe42c27e4fc0000.tar.gz |
office/keepassx: Updated for version 0.4.1
Diffstat (limited to 'office/keepassx/keepassx.SlackBuild')
-rw-r--r-- | office/keepassx/keepassx.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/office/keepassx/keepassx.SlackBuild b/office/keepassx/keepassx.SlackBuild index 9c10ca238f..c8ef485035 100644 --- a/office/keepassx/keepassx.SlackBuild +++ b/office/keepassx/keepassx.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for KeePassX -# Copyright 2008 Ferenc Deak <ferenc.deak@gmail.com> +# Copyright 2008-2009 Ferenc Deak <ferenc.deak@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=keepassx -VERSION=0.3.3 +VERSION=0.4.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -47,7 +50,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvzf $CWD/KeePassX-$VERSION.tar.gz +tar xvf $CWD/keepassx-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -56,7 +59,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -qmake-qt4 \ +qmake \ QMAKE_CFLAGS="$SLKCFLAGS" \ QMAKE_CXXFLAGS="$SLKCFLAGS" @@ -64,17 +67,16 @@ make make install INSTALL_ROOT=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +# there is no manpage mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING INSTALL changelog todo \ +cp -a COPYING INSTALL changelog \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -83,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |