aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/notepad++/README12
-rw-r--r--development/notepad++/doinst.sh7
-rwxr-xr-xdevelopment/notepad++/notepad++44
-rw-r--r--development/notepad++/notepad++.SlackBuild104
-rw-r--r--development/notepad++/notepad++.desktop9
-rw-r--r--development/notepad++/notepad++.info10
-rw-r--r--development/notepad++/notepad++.pngbin0 -> 71965 bytes
-rw-r--r--development/notepad++/slack-desc19
8 files changed, 205 insertions, 0 deletions
diff --git a/development/notepad++/README b/development/notepad++/README
new file mode 100644
index 0000000000..44f9851f08
--- /dev/null
+++ b/development/notepad++/README
@@ -0,0 +1,12 @@
+Notepad++ is a free (as in "free speech" and also as in "free beer")
+source code editor and Notepad replacement that supports several
+languages.
+Running in the MS Windows environment, its use is governed by
+GNU General Public License.
+
+This Slackbuild is made as an example of how you can run windows
+software i686 or x86_64 in Slackware without installing multilib.
+It uses a dedicated AppImage bundled with Notepad++.
+
+You can modify the wrapper bash script to fit your needs.
+Have a look at the included wrapper.patch and the SlackBuild.
diff --git a/development/notepad++/doinst.sh b/development/notepad++/doinst.sh
new file mode 100644
index 0000000000..9a8ded3c60
--- /dev/null
+++ b/development/notepad++/doinst.sh
@@ -0,0 +1,7 @@
+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
diff --git a/development/notepad++/notepad++ b/development/notepad++/notepad++
new file mode 100755
index 0000000000..c07903a329
--- /dev/null
+++ b/development/notepad++/notepad++
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# Slackware launcher script for notepad++
+
+# Copyright 2024-2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# 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.
+
+VERSION=8.7.9
+ARCH=`uname -m`
+
+if [ "$ARCH" = "x86_64" ]; then
+ if ! [ -f "$HOME/.wine/drive_c/Program Files/Notepad++/notepad++.exe" ]; then
+ wine /opt/Notepad++/npp.${VERSION}.Installer.x64.exe /S
+ rm -rf $HOME/.local/share/applications/wine/Programs/Notepad++.desktop
+ kbuildsycoca5 > /dev/null 2>&1
+ fi
+ cd "$HOME/.wine/drive_c/Program Files/Notepad++"
+ wine "./notepad++.exe" "${@:2}"
+elif [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+ if ! [ -f "$HOME/.wine/drive_c/Program Files/Notepad++/notepad++.exe" ]; then
+ wine /opt/Notepad++/npp.${VERSION}.Installer.exe /S
+ rm -rf $HOME/.local/share/applications/wine/Programs/Notepad++.desktop
+ kbuildsycoca5 > /dev/null 2>&1
+ fi
+ cd "$HOME/.wine/drive_c/Program Files/Notepad++"
+ wine "./notepad++.exe" "${@:2}"
+fi
diff --git a/development/notepad++/notepad++.SlackBuild b/development/notepad++/notepad++.SlackBuild
new file mode 100644
index 0000000000..ed1d038369
--- /dev/null
+++ b/development/notepad++/notepad++.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Slackware build script for notepad++
+
+# Copyright 2024-2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# 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.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=notepad++
+VERSION=${VERSION:-8.7.9}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+
+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 {} \;
+
+mkdir -p $PKG/opt/Notepad++
+if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+ cp $CWD/npp.$VERSION.Installer.exe $PKG/opt/Notepad++/
+elif [ "$ARCH" = "x86_64" ]; then
+ cp $CWD/npp.$VERSION.Installer.x64.exe $PKG/opt/Notepad++/
+else
+ echo "Unsupported architecture: $ARCH"
+ exit
+fi
+install -T -m0755 $CWD/notepad++ $PKG/opt/Notepad++/$PRGNAM
+
+mkdir -p $PKG/usr/share/pixmaps
+cp $CWD/notepad++.png $PKG/usr/share/pixmaps/notepad++.png
+
+mkdir -p $PKG/usr/share/applications
+cp $CWD/notepad++.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
+
+mkdir -p $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/notepad++/notepad++.desktop b/development/notepad++/notepad++.desktop
new file mode 100644
index 0000000000..a888e1e16e
--- /dev/null
+++ b/development/notepad++/notepad++.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Notepad++
+GenericName=Notepad++
+Exec=/opt/Notepad++/notepad++ "\\$@"
+Icon=notepad++
+Terminal=false
+Type=Application
+Categories=Development;IDE;
+StartupNotify=false
diff --git a/development/notepad++/notepad++.info b/development/notepad++/notepad++.info
new file mode 100644
index 0000000000..cf58af6bcc
--- /dev/null
+++ b/development/notepad++/notepad++.info
@@ -0,0 +1,10 @@
+PRGNAM="notepad++"
+VERSION="8.7.9"
+HOMEPAGE="https://notepad-plus-plus.org/"
+DOWNLOAD="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.7.9/npp.8.7.9.Installer.exe"
+MD5SUM="79b7d6b064fbeef72b1057a60217e7d2"
+DOWNLOAD_x86_64="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.7.9/npp.8.7.9.Installer.x64.exe"
+MD5SUM_x86_64="22fe54746f6c4d6e5a7986296ec5e931"
+REQUIRES="wine"
+MAINTAINER="Antonio Leal"
+EMAIL="antonioleal@yahoo.com"
diff --git a/development/notepad++/notepad++.png b/development/notepad++/notepad++.png
new file mode 100644
index 0000000000..c853703cf3
--- /dev/null
+++ b/development/notepad++/notepad++.png
Binary files differ
diff --git a/development/notepad++/slack-desc b/development/notepad++/slack-desc
new file mode 100644
index 0000000000..af7c0cd5f3
--- /dev/null
+++ b/development/notepad++/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------------------------------------------------------|
+notepad++: notepad++ (A powerful text editor from the Windows universe)
+notepad++:
+notepad++: Notepad++ is a free (as in "free speech" and also as in "free beer")
+notepad++: source code editor and Notepad replacement that supports several
+notepad++: languages.
+notepad++: Running in the MS Windows environment, its use is governed by
+notepad++: GNU General Public License.
+notepad++:
+notepad++:
+notepad++:
+notepad++: