desktop/kwalletcli: Added (kwallet from the commandline)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Benjamin Trigona-Harany 2012-12-29 08:06:45 -05:00 committed by dsomero
parent f895430098
commit bc521f26d0
4 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,3 @@
kwalletcli provides commandline access to kwallet, KDE's password
manager. Information on additional C, Python and shell bindings
can be found at the kwalletcli homepage.

View file

@ -0,0 +1,74 @@
#!/bin/sh
# Written by Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
# Based on http://slackbuilds.org/template.SlackBuild
PRGNAM=kwalletcli
VERSION=${VERSION:-2.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $PKG $TMP $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar xzf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -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 $PKG/usr/man/man1
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make KDE_VER=4 KDE_INCS="-I /usr/lib$LIBDIRSUFFIX/qt/include/QtCore"
make install MANDIR=/usr/man/man DESTDIR=$PKG
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENCE \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="kwalletcli"
VERSION="2.11"
HOMEPAGE="https://www.mirbsd.org/kwalletcli.htm"
DOWNLOAD="https://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-2.11.tar.gz"
MD5SUM="bf5c0bc1608041dd637f0e8e5e4f8586"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="bosth@alumni.sfu.ca"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
kwalletcli: kwalletcli (kwallet from the commandline)
kwalletcli:
kwalletcli: kwalletcli provides commandline access to kwallet, KDE's password
kwalletcli: manager.
kwalletcli:
kwalletcli: The following executables are provided in this package: kwalletcli,
kwalletcli: kwalletcli_getpin, kwalletaskpass and pinentry-kwallet.
kwalletcli:
kwalletcli:
kwalletcli:
kwalletcli: