diff options
Diffstat (limited to 'desktop/simplenote')
-rw-r--r-- | desktop/simplenote/doinst.sh | 11 | ||||
-rw-r--r-- | desktop/simplenote/files/simplenote.desktop (renamed from desktop/simplenote/simplenote.desktop) | 0 | ||||
-rw-r--r-- | desktop/simplenote/files/simplenote.png (renamed from desktop/simplenote/simplenote.png) | bin | 36089 -> 36089 bytes | |||
-rw-r--r-- | desktop/simplenote/simplenote.SlackBuild | 58 | ||||
-rw-r--r-- | desktop/simplenote/simplenote.info | 10 |
5 files changed, 46 insertions, 33 deletions
diff --git a/desktop/simplenote/doinst.sh b/desktop/simplenote/doinst.sh index 65c7e2eeb9..b7d3b71f74 100644 --- a/desktop/simplenote/doinst.sh +++ b/desktop/simplenote/doinst.sh @@ -2,8 +2,19 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +# If other icon themes are installed, then add to/modify this as needed if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi + +if [ -e usr/share/glib-2.0/schemas ]; then + if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 + fi +fi diff --git a/desktop/simplenote/simplenote.desktop b/desktop/simplenote/files/simplenote.desktop index 992f010516..992f010516 100644 --- a/desktop/simplenote/simplenote.desktop +++ b/desktop/simplenote/files/simplenote.desktop diff --git a/desktop/simplenote/simplenote.png b/desktop/simplenote/files/simplenote.png Binary files differindex 15ab612f95..15ab612f95 100644 --- a/desktop/simplenote/simplenote.png +++ b/desktop/simplenote/files/simplenote.png diff --git a/desktop/simplenote/simplenote.SlackBuild b/desktop/simplenote/simplenote.SlackBuild index 58d2710d19..b8462480a6 100644 --- a/desktop/simplenote/simplenote.SlackBuild +++ b/desktop/simplenote/simplenote.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for simplenote -# Copyright 2018-2019 Skaendo <skaendo@linuxmail.org> +# Copyright 2018, 2019, 2020 Skaendo <skaendo@linuxmail.org> +# Copyright 2022 carriunix <carriunix@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -11,22 +12,25 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=simplenote SRCNAM=Simplenote -VERSION=${VERSION:-1.4.1} +VERSION=${VERSION:-2.21.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,15 +40,16 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# Set to abort if not building on x86_64 -if [ "$ARCH" = "x86_64" ]; then - SRCARCH=x86_64 # This does nothing. -else +if [ "$ARCH" != "x86_64" ]; then echo "$ARCH is not supported. Aborting." exit 1 fi @@ -57,6 +62,7 @@ cd $TMP rm -rf $SRCNAM-linux-$VERSION-x64 tar xvf $CWD/$SRCNAM-linux-$VERSION-x64.tar.gz cd $SRCNAM-linux-$VERSION-x64 + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -64,23 +70,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Install into /opt mkdir -p $PKG/opt/$PRGNAM cp -vr * $PKG/opt/$PRGNAM -cp -v $CWD/$PRGNAM.png $PKG/opt/$PRGNAM +cp -v $CWD/files/$PRGNAM.png $PKG/opt/$PRGNAM -# Link the Binary mkdir -p $PKG/usr/bin -ln -s /opt/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM +( cd $PKG/usr/bin ; ln -sf ../../opt/$PRGNAM/$PRGNAM $PRGNAM) -# Link the icon mkdir -p $PKG/usr/share/icons/hicolor/256x256/apps -ln -s /opt/$PRGNAM/$PRGNAM.png \ - $PKG/usr/share/icons/hicolor/256x256/apps/$PRGNAM.png +( cd $PKG/usr/share/icons/hicolor/256x256/apps ; ln -sf ../../../../../../opt/$PRGNAM/$PRGNAM.png $PRGNAM.png) -# Install the .desktop file mkdir -p $PKG/usr/share/applications -cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications +cp $CWD/files/$PRGNAM.desktop $PKG/usr/share/applications find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -89,10 +90,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f | xargs chmod 0644 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/simplenote/simplenote.info b/desktop/simplenote/simplenote.info index f797938165..3d4765a7c1 100644 --- a/desktop/simplenote/simplenote.info +++ b/desktop/simplenote/simplenote.info @@ -1,10 +1,10 @@ PRGNAM="simplenote" -VERSION="1.4.1" +VERSION="2.21.0" HOMEPAGE="https://simplenote.com/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/Automattic/simplenote-electron/releases/download/v1.4.1/Simplenote-linux-1.4.1-x64.tar.gz" -MD5SUM_x86_64="33ce82fc74e9797278d82597260cb344" +DOWNLOAD_x86_64="https://github.com/Automattic/simplenote-electron/releases/download/v2.21.0/Simplenote-linux-2.21.0-x64.tar.gz" +MD5SUM_x86_64="ed9914574c0e66e36d8cd7e32caf7857" REQUIRES="" -MAINTAINER="Skaendo" -EMAIL="skaendo@linuxmail.org" +MAINTAINER="carriunix" +EMAIL="carriunix@gmail.com" |