diff options
Diffstat (limited to 'misc/nixnote/nixnote.SlackBuild')
-rw-r--r-- | misc/nixnote/nixnote.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/nixnote/nixnote.SlackBuild b/misc/nixnote/nixnote.SlackBuild index 4fc555450f..1639050f23 100644 --- a/misc/nixnote/nixnote.SlackBuild +++ b/misc/nixnote/nixnote.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for nixnote -# Copyright 2013 Willy Sudiarto Raharjo <willysr@slackware-id.org> +# Copyright 2013-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,12 +24,12 @@ PRGNAM=nixnote VERSION=${VERSION:-1.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,11 +40,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SOURCEARCH="i386" -elif [ "$ARCH" = "i686" ]; then - SOURCEARCH="i386" -elif [ "$ARCH" = "x86_64" ]; then +if [ "$ARCH" = "x86_64" ]; then SOURCEARCH="amd64" else SOURCEARCH="i386" @@ -60,14 +56,18 @@ tar xvf $CWD/$PRGNAM-${VERSION}_$SOURCEARCH.tar.gz cd $PRGNAM chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cp -r usr $PKG rm -rf $PKG/usr/share/man +# Use patched nixnote to remove SSLv3 usage +# https://sourceforge.net/p/nevernote/support-requests/21/ +cp $CWD/nixnote.jar $PKG/usr/share/nixnote/ + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |