diff options
author | Damian Perticone <mjolnirdam@gmail.com> | 2023-10-11 22:42:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-10-11 22:48:21 +0700 |
commit | 948f43fd79629c412d63ee051dfeb09aafcaa07c (patch) | |
tree | c8a67057a24ec5da7169e0821ca93c7ba788955f /development | |
parent | b0e010952a67a464807c82a0e4a530dfbd7f340b (diff) |
development/notepadnext: Added (Reimplementation of Notepad++).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/notepadnext/README | 4 | ||||
-rw-r--r-- | development/notepadnext/doinst.sh | 9 | ||||
-rw-r--r-- | development/notepadnext/notepadnext.SlackBuild | 120 | ||||
-rw-r--r-- | development/notepadnext/notepadnext.info | 20 | ||||
-rw-r--r-- | development/notepadnext/slack-desc | 19 |
5 files changed, 172 insertions, 0 deletions
diff --git a/development/notepadnext/README b/development/notepadnext/README new file mode 100644 index 0000000000000..72781528b3146 --- /dev/null +++ b/development/notepadnext/README @@ -0,0 +1,4 @@ +A cross-platform, reimplementation of Notepad++. + +Though the application overall is stable and usable, it should not be +considered safe for critically important work. diff --git a/development/notepadnext/doinst.sh b/development/notepadnext/doinst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/development/notepadnext/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/development/notepadnext/notepadnext.SlackBuild b/development/notepadnext/notepadnext.SlackBuild new file mode 100644 index 0000000000000..58d1e714cbbb8 --- /dev/null +++ b/development/notepadnext/notepadnext.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/bash + +# Slackware build script for notepadnext + +# Copyright 2023 Damian Perticone, Berisso,Argentina +# 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=notepadnext +SRCNAM=NotepadNext +VERSION=${VERSION:-0.6.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +QSIMPLEUPDATER=62e0ce7dde4c76e7533f2f0ee53f19ee1690c8dd +QT_ADVANCED_DOCKING_SYSTEM=89ff0ad311ec0cba7e7685c070d3be3a055cce71 +SINGLEAPPLICATION=d0c43a51ad7d4f74ae5cff8d8cbf8aba0cf5e51c +EDITORCONFIG_CORE_QT=52820d59769fcba6d0ed94f685406c0383fe1a30 +UCHARDET=ab1d2f1120297af6537f2a0d09dca589d4c3ea3b + +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" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$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 {} \; + +tar xvzf $CWD/QSimpleUpdater-$QSIMPLEUPDATER.tar.gz --strip-components=1 -C src/QSimpleUpdater/ +tar xvzf $CWD/Qt-Advanced-Docking-System-$QT_ADVANCED_DOCKING_SYSTEM.tar.gz --strip-components=1 -C src/ads/ +tar xvzf $CWD/SingleApplication-$SINGLEAPPLICATION.tar.gz --strip-components=1 -C src/singleapplication/ +tar xvzf $CWD/editorconfig-core-qt-$EDITORCONFIG_CORE_QT.tar.gz --strip-components=1 -C src/editorconfig-core-qt/ +tar xvzf $CWD/uchardet-$UCHARDET.tar.gz --strip-components=1 -C src/uchardet/ + +mkdir -p build +cd build +qmake-qt5 ../src/NotepadNext.pro +make +make INSTALL_ROOT=$PKG install + +cd .. + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +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 + +find $PKG -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $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/notepadnext/notepadnext.info b/development/notepadnext/notepadnext.info new file mode 100644 index 0000000000000..7a4d002e47b54 --- /dev/null +++ b/development/notepadnext/notepadnext.info @@ -0,0 +1,20 @@ +PRGNAM="notepadnext" +VERSION="0.6.3" +HOMEPAGE="https://github.com/dail8859/NotepadNext" +DOWNLOAD="https://github.com/dail8859/NotepadNext/archive/v0.6.3/NotepadNext-0.6.3.tar.gz \ + https://github.com/alex-spataru/QSimpleUpdater/archive/62e0ce7dde4c76e7533f2f0ee53f19ee1690c8dd/QSimpleUpdater-62e0ce7dde4c76e7533f2f0ee53f19ee1690c8dd.tar.gz \ + https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/archive/89ff0ad/Qt-Advanced-Docking-System-89ff0ad.tar.gz \ + https://github.com/editorconfig/editorconfig-core-qt/archive/52820d59769fcba6d0ed94f685406c0383fe1a30/editorconfig-core-qt-52820d59769fcba6d0ed94f685406c0383fe1a30.tar.gz \ + https://github.com/itay-grudev/SingleApplication/archive/d0c43a5/SingleApplication-d0c43a5.tar.gz \ + https://gitlab.freedesktop.org/uchardet/uchardet/-/archive/ab1d2f1120297af6537f2a0d09dca589d4c3ea3b/uchardet-ab1d2f1120297af6537f2a0d09dca589d4c3ea3b.tar.gz" +MD5SUM="8595b6a484ff76f6d3f468e481020dcd \ + e63ec431c53a6d00706974cbce8060ae \ + 8ff00e5d0422569bb14fd090800956d4 \ + 71cd96440b84645f059295a7bbd4b1a0 \ + d2a3d9d9a4be6461b88768f1101adf7b \ + fdb4220f7901387c289474e3f261ed86" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Damian Perticone" +EMAIL="mjolnirdam@gmail.com" diff --git a/development/notepadnext/slack-desc b/development/notepadnext/slack-desc new file mode 100644 index 0000000000000..3ed4bb74cb9e3 --- /dev/null +++ b/development/notepadnext/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------------------------------------------------------| +notepadnext: notepadnext (Cross-platform reimplementation of Notepad++) +notepadnext: +notepadnext: NotepadNext is a cross-platform reimplementation of Notepad++. It aims +notepadnext: to provide a similar user experience on Linux and other platforms. +notepadnext: +notepadnext: +notepadnext: +notepadnext: +notepadnext: +notepadnext: Website: https://github.com/dail8859/NotepadNext +notepadnext: |