summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
author Skaendo2018-04-17 13:33:50 +0200
committer Willy Sudiarto Raharjo2018-04-21 02:42:59 +0200
commit39e203092248a7e2ab9b119d793c76643faa279d (patch)
treedd5698787df788978212d03ebac121bca719429a /desktop
parentf4853d2962b8208e7f64b8a991d437041e8e2e8b (diff)
downloadslackbuilds-39e203092248a7e2ab9b119d793c76643faa279d.tar.gz
desktop/Simplenote: Added (Note Taking Program).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/Simplenote/README5
-rw-r--r--desktop/Simplenote/Simplenote.SlackBuild79
-rw-r--r--desktop/Simplenote/Simplenote.desktop9
-rw-r--r--desktop/Simplenote/Simplenote.info10
-rw-r--r--desktop/Simplenote/doinst.sh9
-rw-r--r--desktop/Simplenote/slack-desc19
6 files changed, 131 insertions, 0 deletions
diff --git a/desktop/Simplenote/README b/desktop/Simplenote/README
new file mode 100644
index 0000000000..1f6fd386a8
--- /dev/null
+++ b/desktop/Simplenote/README
@@ -0,0 +1,5 @@
+Simple note taking program.
+
+This is only a binary repackage, the source can be found at:
+https://github.com/Automattic/simplenote-electron/
+but requires build time dependencies not available at SBo.
diff --git a/desktop/Simplenote/Simplenote.SlackBuild b/desktop/Simplenote/Simplenote.SlackBuild
new file mode 100644
index 0000000000..197dc39c5a
--- /dev/null
+++ b/desktop/Simplenote/Simplenote.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for Simplenote
+# Copyright 2018 Skaendo <skaendo at excite dot com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 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.
+
+PRGNAM=Simplenote
+SRCNAM=Simplenote-linux
+VERSION=${VERSION:-1.1.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=x86_64
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION-x64
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-x64
+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 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/Simplenote
+cp -vr * $PKG/opt/Simplenote
+
+# Link the Binary
+mkdir -p $PKG/usr/bin
+ln -s /opt/Simplenote/Simplenote $PKG/usr/bin/Simplenote
+
+# Link the Icon
+mkdir -p $PKG/usr/share/icons/hicolor/256x256/apps
+ln -s /opt/Simplenote/Simplenote.png \
+ $PKG/usr/share/icons/hicolor/256x256/apps/Simplenote.png
+
+# Install the .desktop file
+mkdir -p $PKG/usr/share/applications
+cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE LICENSES.chromium.html \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+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/Simplenote/Simplenote.desktop b/desktop/Simplenote/Simplenote.desktop
new file mode 100644
index 0000000000..f06c30c172
--- /dev/null
+++ b/desktop/Simplenote/Simplenote.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Simplenote
+Comment=Simplenote for Linux
+Exec="/opt/Simplenote/Simplenote" %U
+Terminal=false
+Type=Application
+Icon=Simplenote
+StartupNotify=true
+Categories=Utility;TextEditor;
diff --git a/desktop/Simplenote/Simplenote.info b/desktop/Simplenote/Simplenote.info
new file mode 100644
index 0000000000..48286cd9be
--- /dev/null
+++ b/desktop/Simplenote/Simplenote.info
@@ -0,0 +1,10 @@
+PRGNAM="Simplenote"
+VERSION="1.1.3"
+HOMEPAGE="https://simplenote.com/"
+DOWNLOAD="https://github.com/Automattic/simplenote-electron/releases/download/v1.1.3/Simplenote-linux-1.1.3.tar.gz"
+MD5SUM="f7bf464056f804e73cdae978e8eb26f1"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Skaendo"
+EMAIL="skaendo at excite dot com"
diff --git a/desktop/Simplenote/doinst.sh b/desktop/Simplenote/doinst.sh
new file mode 100644
index 0000000000..65c7e2eeb9
--- /dev/null
+++ b/desktop/Simplenote/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+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
diff --git a/desktop/Simplenote/slack-desc b/desktop/Simplenote/slack-desc
new file mode 100644
index 0000000000..318f677bd6
--- /dev/null
+++ b/desktop/Simplenote/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+Simplenote: Simplenote (Note Taking Program)
+Simplenote:
+Simplenote: Simple note taking program.
+Simplenote:
+Simplenote:
+Simplenote:
+Simplenote:
+Simplenote:
+Simplenote:
+Simplenote: Homepage: https://simplenote.com/
+Simplenote: