development/notepadqq: Updated for version 1.4.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e3ac863edb
commit
ca5b5a7f2f
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for notepadqq
|
||||
|
||||
# Copyright 2018 Antonio Leal, Porto Salvo, Oeiras, Portugal
|
||||
# Copyright 2022 Antonio Leal, Porto Salvo, Oeiras, Portugal
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -26,7 +26,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=notepadqq
|
||||
VERSION=${VERSION:-1.2.0}
|
||||
VERSION=${VERSION:-1.4.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -66,7 +63,6 @@ else
|
|||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
@ -83,23 +79,15 @@ find -L . \
|
|||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix /opt/notepadqq \
|
||||
--prefix /usr \
|
||||
--qmake /usr/lib$LIBDIRSUFFIX/qt5/bin/qmake
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG INSTALL_ROOT=$PKG
|
||||
|
||||
# Allow the binary to be found somewhere in $PATH
|
||||
mkdir -p $PKG/usr/bin
|
||||
ln -s /opt/notepadqq/bin/$PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
|
||||
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/share
|
||||
mv $PKG/opt/notepadqq/share/icons/ $PKG/usr/share/
|
||||
mv $PKG/opt/notepadqq/share/applications/ $PKG/usr/share/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CONTRIBUTING.md COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="notepadqq"
|
||||
VERSION="1.2.0"
|
||||
HOMEPAGE="http://notepadqq.altervista.org"
|
||||
DOWNLOAD="https://github.com/notepadqq/notepadqq/archive/v1.2.0/notepadqq-1.2.0.tar.gz"
|
||||
MD5SUM="8114b25ae89c75037da8f65676443f23"
|
||||
VERSION="1.4.0"
|
||||
HOMEPAGE="http://https://notepadqq.com"
|
||||
DOWNLOAD="https://github.com/notepadqq/notepadqq/archive/v1.4.0/notepadqq-1.4.0.tar.gz"
|
||||
MD5SUM="67e1ec78abb43ab29d8650c4eef0356b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue