aboutsummaryrefslogtreecommitdiff
path: root/games/openclonk/openclonk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/openclonk/openclonk.SlackBuild')
-rw-r--r--games/openclonk/openclonk.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/games/openclonk/openclonk.SlackBuild b/games/openclonk/openclonk.SlackBuild
index 70cd359aa6e81..92fe4e3ee4175 100644
--- a/games/openclonk/openclonk.SlackBuild
+++ b/games/openclonk/openclonk.SlackBuild
@@ -22,10 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220222 bkw: Modified by SlackBuilds.org:
+# - update for v8.0. 7.0 won't build on Slackware 15.0. plus it would
+# need libupnp-legacy, which is probably going away soon.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openclonk
-VERSION=${VERSION:-7.0}
+VERSION=${VERSION:-8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +42,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
@@ -75,11 +76,16 @@ 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 \
+ -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 {} \;
-
-patch -p1 < $CWD/findreadline.patch
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+sed -i '1i#include <limits>' \
+ src/script/C4AulParse.cpp \
+ src/editor/C4EditCursor.cpp \
+ src/gui/C4ScriptGuiWindow.cpp \
+ src/object/C4Object.cpp \
+ src/editor/C4ConsoleQtPropListViewer.cpp
mkdir -p build
cd build