summaryrefslogtreecommitdiff
path: root/misc/keychain/keychain.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/keychain/keychain.SlackBuild')
-rw-r--r--misc/keychain/keychain.SlackBuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/misc/keychain/keychain.SlackBuild b/misc/keychain/keychain.SlackBuild
index 1d9551f3f3..b455f16bd6 100644
--- a/misc/keychain/keychain.SlackBuild
+++ b/misc/keychain/keychain.SlackBuild
@@ -1,11 +1,16 @@
#!/bin/sh
# Slackware build script for Keychain
-# Written by Menno E. Duursma
+
+# Written by Menno Duursma <druiloor@zonnet.nl>
+
+# This program is free software. It comes without any warranty.
+# Granted WTFPL, Version 2, as published by Sam Hocevar. See
+# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=keychain
-VERSION=2.6.8
-ARCH=${ARCH:-noarch}
+VERSION=2.7.0
+ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -14,19 +19,13 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-fi
-
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.*z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -35,24 +34,23 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-mkdir -p $PKG/usr/bin
-install -m0755 keychain $PKG/usr/bin/keychain
+make all
-mkdir -p $PKG/usr/man/man1
-install -m0644 keychain.1 $PKG/usr/man/man1/keychain.1
+install -D -m 0755 keychain $PKG/usr/bin/keychain
+install -D -m 0644 keychain.1.gz $PKG/usr/man/man1/keychain.1.gz
-( 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
-)
+install -D -m 0644 img/keychain-1.png $PKG/usr/share/pixmaps/keychain-1.png
+install -D -m 0644 img/keychain-2.png $PKG/usr/share/pixmaps/keychain-2.png
+# For creating a KDE desktop-entry maybe read this post:
+# http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-12/msg02640.html
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING.txt ChangeLog README.rst keychain.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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}