aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-17 12:09:56 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-19 12:09:24 +0700
commita5f10aa78f2cdbf156d4783481a8d0eee89ce850 (patch)
tree616d28a4f17598c88bf2b12cbd28e4c38331089d
parent92d1fd3138948b9aab510d678cf1fd00cb3ca316 (diff)
office/NME: Fix download URL, add gtk/epub support.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/NME/NME.SlackBuild35
-rw-r--r--office/NME/NME.info4
2 files changed, 19 insertions, 20 deletions
diff --git a/office/NME/NME.SlackBuild b/office/NME/NME.SlackBuild
index 03b4e335894da..1f10f170ab939 100644
--- a/office/NME/NME.SlackBuild
+++ b/office/NME/NME.SlackBuild
@@ -22,25 +22,27 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220217 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix download URL and homepage.
+# - include nmeepub and nmegtk in the package.
+# - actually use SLKCFLAGS.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=NME
VERSION=${VERSION:-130323}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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
@@ -50,8 +52,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -74,20 +76,17 @@ unzip -o $CWD/$PRGNAM-$VERSION.zip
mv $PRGNAM-distrib $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 {} \;
+# 20220217 bkw: permissions are rotten, do not revert to template.
+find . -type f -exec chmod 644 {} \+
+find . -type d -exec chmod 755 {} \+
+
+sed -i -e "/FLAGS/s,-g\\>,$SLKCFLAGS," Makefile
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
+TARGETS="nme nmeepub nmegtk"
-install -m 0755 nme $PKG/usr/bin/nme
+make $TARGETS ZLIB=/usr/include/minizip zipObjects=-lminizip
-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
+install -D -s -m0755 $TARGETS $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.html *.txt $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/office/NME/NME.info b/office/NME/NME.info
index 790825c544956..4d058aaf92717 100644
--- a/office/NME/NME.info
+++ b/office/NME/NME.info
@@ -1,7 +1,7 @@
PRGNAM="NME"
VERSION="130323"
-HOMEPAGE="http://www.nyctergatis.com/creole"
-DOWNLOAD="http://nyctergatis.com/creole/NME-130323.zip"
+HOMEPAGE="https://nyctergatis.com/nme/"
+DOWNLOAD="https://launchpad.net/nme/1.2.2/1.2.2/+download/NME-130323.zip"
MD5SUM="d924f0d994b71bc79e5015bd365142e8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""