aboutsummaryrefslogtreecommitdiff
path: root/misc/KeePass/KeePass.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/KeePass/KeePass.SlackBuild')
-rw-r--r--misc/KeePass/KeePass.SlackBuild9
1 files changed, 4 insertions, 5 deletions
diff --git a/misc/KeePass/KeePass.SlackBuild b/misc/KeePass/KeePass.SlackBuild
index cf9b917ccba04..44db2ba02fca8 100644
--- a/misc/KeePass/KeePass.SlackBuild
+++ b/misc/KeePass/KeePass.SlackBuild
@@ -18,16 +18,14 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
PRGNAM=KeePass
-VERSION=${VERSION:-2.14}
+VERSION=${VERSION:-2.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -61,7 +59,7 @@ rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-mkdir $PRGNAM-$VERSION $PRGNAM-$VERSION-Source
+mkdir -p $PRGNAM-$VERSION-Source
unzip $CWD/$PRGNAM-$VERSION.zip -d $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-$VERSION-Source.zip -d $PRGNAM-$VERSION-Source
@@ -93,11 +91,12 @@ mkdir -p $PKG/usr/lib
cp -a $PRGNAM-$VERSION $PKG/usr/lib/
mkdir -p $PKG/usr/bin
-cp $CWD/files/keepass $PKG/usr/bin/keepass
+echo -e '#!/bin/bash'"\nexec /usr/bin/mono /usr/lib/KeePass-${VERSION}/KeePass.exe" > $PKG/usr/bin/keepass
chmod 0755 $PKG/usr/bin/keepass
mkdir -p $PKG/usr/share/applications
cp $CWD/files/KeePass.desktop $PKG/usr/share/applications/
+chmod 0644 $PKG/usr/share/applications/KeePass.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild