diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-04-18 11:55:26 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:14 +0700 |
commit | f1f08cf44c02eb933997de9571bd1a9ae1880727 (patch) | |
tree | 328dc1f65ca0fd80c546c1cc5df7d6bcb19fb697 /misc/simh-classic/simh-classic.SlackBuild | |
parent | 78b55611f3d403fec140149f314f2ba2a2263455 (diff) |
misc/simh-classic: Gzip patch to preserve line endings.
The source file is CRLF and we need to preserve these in the patch.
Restrict build to 1 job, otherwise it randomly fails.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/simh-classic/simh-classic.SlackBuild')
-rw-r--r-- | misc/simh-classic/simh-classic.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/simh-classic/simh-classic.SlackBuild b/misc/simh-classic/simh-classic.SlackBuild index 8e89ca4fb0b24..404b3bb35e375 100644 --- a/misc/simh-classic/simh-classic.SlackBuild +++ b/misc/simh-classic/simh-classic.SlackBuild @@ -86,8 +86,8 @@ else fi # Patch the sources in order for uc15 to compile... -patch PDP11/pdp11_defs.h $CWD/pdp11_defs.h.patch - +# gzipped to preserve CRLF line endings +zcat $CWD/pdp11_defs.h.patch.gz | patch PDP11/pdp11_defs.h chown -R root:root . find -L . \ @@ -99,7 +99,7 @@ find -L . \ chmod 0755 . # make the simulators -make all +make -j1 all mkdir -p $PKG/slackbuild/opt/$PRGNAM/bin mv BIN/* $PKG/slackbuild/opt/$PRGNAM/bin @@ -115,7 +115,7 @@ cp -a \ doc/* \ $PKG/slackbuild/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/slackbuild/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cp $CWD/pdp11_defs.h.patch $PKG/slackbuild/usr/doc/$PRGNAM-$VERSION/pdp11_defs.h.patch +cat $CWD/pdp11_defs.h.patch.gz > $PKG/slackbuild/usr/doc/$PRGNAM-$VERSION/pdp11_defs.h.patch.gz mkdir -p $PKG/slackbuild/opt/$PRGNAM/doc/$PRGNAM-$VERSION cp -a doc/* $PKG/slackbuild/opt/$PRGNAM/doc/ |