diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2012-12-29 08:06:45 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-29 22:25:36 -0500 |
commit | bc521f26d0b4ce79d73ce3a84be221e1d55ba7af (patch) | |
tree | bd328fd48fb3876a73d6ba47128ae13b1fadebe2 /desktop/kwalletcli | |
parent | f895430098db5702f02dbf6ff027090bb7398850 (diff) |
desktop/kwalletcli: Added (kwallet from the commandline)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/kwalletcli')
-rw-r--r-- | desktop/kwalletcli/README | 3 | ||||
-rw-r--r-- | desktop/kwalletcli/kwalletcli.SlackBuild | 74 | ||||
-rw-r--r-- | desktop/kwalletcli/kwalletcli.info | 10 | ||||
-rw-r--r-- | desktop/kwalletcli/slack-desc | 19 |
4 files changed, 106 insertions, 0 deletions
diff --git a/desktop/kwalletcli/README b/desktop/kwalletcli/README new file mode 100644 index 0000000000000..519fe733e79fc --- /dev/null +++ b/desktop/kwalletcli/README @@ -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. diff --git a/desktop/kwalletcli/kwalletcli.SlackBuild b/desktop/kwalletcli/kwalletcli.SlackBuild new file mode 100644 index 0000000000000..96168932844d3 --- /dev/null +++ b/desktop/kwalletcli/kwalletcli.SlackBuild @@ -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} diff --git a/desktop/kwalletcli/kwalletcli.info b/desktop/kwalletcli/kwalletcli.info new file mode 100644 index 0000000000000..3296abc0f0c1b --- /dev/null +++ b/desktop/kwalletcli/kwalletcli.info @@ -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" diff --git a/desktop/kwalletcli/slack-desc b/desktop/kwalletcli/slack-desc new file mode 100644 index 0000000000000..93c1f1b8463ac --- /dev/null +++ b/desktop/kwalletcli/slack-desc @@ -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: |