aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorLockywolf <for_sbo.posterazor_2023-05-31@lockywolf.net>2023-06-02 20:21:45 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-03 10:38:21 +0700
commit6840ec88f5831a71d5ebec55a62e47cb91afd230 (patch)
tree650db4bc597178cf767221efde62b9c1f20c6616 /graphics
parent6c83f154f12d109ac492ce0de00500740a1989a2 (diff)
graphics/posterazor: Added (make poster printing patterns)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/posterazor/README6
-rw-r--r--graphics/posterazor/posterazor.SlackBuild125
-rw-r--r--graphics/posterazor/posterazor.info10
-rw-r--r--graphics/posterazor/slack-desc19
4 files changed, 160 insertions, 0 deletions
diff --git a/graphics/posterazor/README b/graphics/posterazor/README
new file mode 100644
index 000000000000..1a42e6f332b3
--- /dev/null
+++ b/graphics/posterazor/README
@@ -0,0 +1,6 @@
+posterazor (make poster printing patterns)
+
+A GUI tool to make printable files that can be later glued
+together from large images.
+
+
diff --git a/graphics/posterazor/posterazor.SlackBuild b/graphics/posterazor/posterazor.SlackBuild
new file mode 100644
index 000000000000..e210c2b405f4
--- /dev/null
+++ b/graphics/posterazor/posterazor.SlackBuild
@@ -0,0 +1,125 @@
+#!/bin/bash
+
+# Slackware build script for posterazor
+
+# Copyright 2023, Lockywolf
+# 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=posterazor
+TGZNAM=PosteRazor
+VERSION=${VERSION:-1.5.1}
+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 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
+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 $PRGNAM-$VERSION
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+ls $CWD/
+unzip $CWD/"$TGZNAM-$VERSION-Source.zip*"
+
+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 {} \;
+
+(
+cd src
+sed -i '/#include "TranslationConstants.h"/a#include <filesystem>' FlPosteRazorDialog.cpp
+#sed -i 's/exists/std::filesystem::exists/' FlPosteRazorDialog.cpp
+sed -i 's/return (access(fileName, 0) == 0);/return (std::filesystem::exists(fileName));/g' FlPosteRazorDialog.cpp
+# return (std::filesystem::exists(fileName));
+
+mkdir -p build
+cd build
+pwd
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ strip PosteRazor
+ mkdir -p $PKG/usr/bin
+ cp PosteRazor $PKG/usr/bin/
+)
+
+
+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
+cp -a \
+ CHANGES LICENSE README \
+ $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/graphics/posterazor/posterazor.info b/graphics/posterazor/posterazor.info
new file mode 100644
index 000000000000..588e89d60da2
--- /dev/null
+++ b/graphics/posterazor/posterazor.info
@@ -0,0 +1,10 @@
+PRGNAM="posterazor"
+VERSION="1.5.1"
+HOMEPAGE="https://posterazor.sourceforge.io"
+DOWNLOAD="https://master.dl.sourceforge.net/project/posterazor/Source%20Releases/1.5.1/PosteRazor-1.5.1-Source.zip?viasf=1"
+MD5SUM="e2914d3a6faae7588b9e3be913cc863d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="FreeImage fltk"
+MAINTAINER="Lockywolf"
+EMAIL="for_sbo.posterazor_2023-05-31@lockywolf.net"
diff --git a/graphics/posterazor/slack-desc b/graphics/posterazor/slack-desc
new file mode 100644
index 000000000000..98709efe2a2e
--- /dev/null
+++ b/graphics/posterazor/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------------------------------------------------------|
+posterazor: posterazor (make poster printing patterns)
+posterazor:
+posterazor: A GUI tool to make printable files that can be later glued
+posterazor: together from large images.
+posterazor:
+posterazor:
+posterazor:
+posterazor:
+posterazor:
+posterazor:
+posterazor: