summaryrefslogtreecommitdiffstats
path: root/games/yar
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2014-09-08 22:28:04 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-08 22:28:04 +0700
commitbb3e9088e5451fc966754cf01a8fec250af613ca (patch)
treeb27511d9304e2a6444b5b29bbfdc96b204d5b2e3 /games/yar
parent62a8806940ca373fba36efa72a81505fec2f99a2 (diff)
downloadslackbuilds-bb3e9088e5451fc966754cf01a8fec250af613ca.tar.gz
slackbuilds-bb3e9088e5451fc966754cf01a8fec250af613ca.tar.xz
games/yar: Fix broken patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/yar')
-rw-r--r--games/yar/missingincludes.diff13
-rw-r--r--games/yar/missingincludes.diff.gzbin0 -> 272 bytes
-rw-r--r--games/yar/yar.SlackBuild2
3 files changed, 1 insertions, 14 deletions
diff --git a/games/yar/missingincludes.diff b/games/yar/missingincludes.diff
deleted file mode 100644
index 47647c58d2..0000000000
--- a/games/yar/missingincludes.diff
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -Naur yar-0.99/yar/sgw.hxx yar-0.99.patched/yar/sgw.hxx
---- yar-0.99/yar/sgw.hxx 2003-10-25 04:15:47.000000000 -0400
-+++ yar-0.99.patched/yar/sgw.hxx 2014-04-29 12:03:28.000000000 -0400
-@@ -24,6 +24,9 @@
-
- #include <iostream>
- #include <string>
-+#include <cstdio>
-+#include <cstdlib>
-+#include <cmath>
-
- #define DEFAULT_SCX (1024) // Default Screen Size and Depth
- #define DEFAULT_SCY (768)
diff --git a/games/yar/missingincludes.diff.gz b/games/yar/missingincludes.diff.gz
new file mode 100644
index 0000000000..e0b2579058
--- /dev/null
+++ b/games/yar/missingincludes.diff.gz
Binary files differ
diff --git a/games/yar/yar.SlackBuild b/games/yar/yar.SlackBuild
index 010fc43a4d..814137973b 100644
--- a/games/yar/yar.SlackBuild
+++ b/games/yar/yar.SlackBuild
@@ -53,7 +53,7 @@ find -L . \
\( -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/missingincludes.diff
+zcat $CWD/missingincludes.diff.gz | patch -p1
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \