diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/syobonaction/doinst.sh | 6 | ||||
-rw-r--r-- | games/syobonaction/git2tarxz.sh | 75 | ||||
-rw-r--r-- | games/syobonaction/icons/16.png | bin | 0 -> 584 bytes | |||
-rw-r--r-- | games/syobonaction/icons/32.png | bin | 0 -> 187 bytes | |||
-rw-r--r-- | games/syobonaction/icons/48.png (renamed from games/syobonaction/syobonaction.png) | bin | 544 -> 544 bytes | |||
-rw-r--r-- | games/syobonaction/syobonaction.6 | 259 | ||||
-rw-r--r-- | games/syobonaction/syobonaction.SlackBuild | 34 | ||||
-rw-r--r-- | games/syobonaction/syobonaction.info | 6 | ||||
-rw-r--r-- | games/syobonaction/syobonaction.pod | 63 | ||||
-rw-r--r-- | games/syobonaction/syobonaction.rst | 75 |
10 files changed, 262 insertions, 256 deletions
diff --git a/games/syobonaction/doinst.sh b/games/syobonaction/doinst.sh index 5fb28930db0b9..3e5691a052b5b 100644 --- a/games/syobonaction/doinst.sh +++ b/games/syobonaction/doinst.sh @@ -1,3 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/syobonaction/git2tarxz.sh b/games/syobonaction/git2tarxz.sh new file mode 100644 index 0000000000000..dfa2d695a5357 --- /dev/null +++ b/games/syobonaction/git2tarxz.sh @@ -0,0 +1,75 @@ +#!/bin/sh + +# Create source tarball from git repo, with generated version number. + +# Takes one optional argument, which is the commit or tag to create a +# tarball of. With no arg, HEAD is used. + +# Version number example: 0.0.1+20200227_ad7ec17 + +# Notes: + +# Do not use this if you're packaging a release. + +# This script doesn't need to be run as root. It does need to be able +# to write to the current directory it's run from. + +# Running this script twice for the same commit will NOT give identical +# tarballs, even if the contents are identical. This is because tar +# includes the current time in a newly-created tarball (plus there may +# be other git-related reasons). + +# Once you've generated a tarball, you'll still need a place to host it. +# Ask on the mailing list, if you don't have your own web server to +# play with. + +## Config: + +# Name of SBo build: +PRGNAM=syobonaction + +# Github project and user names: +PROJECT=syobon +GITUSER=CecilHarvey + +# For github projects, you can use this unmodified: +CLONE_URL=https://github.com/$GITUSER/$PROJECT.git + +# For non-github projects, you might not need GITUSER, in which case +# just omit it from the script. + +## End of config. + +set -e + +GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX ) +rm -rf $GITDIR +git clone $CLONE_URL $GITDIR + +CWD="$( pwd )" +cd $GITDIR + +if [ "$1" != "" ]; then + git reset --hard "$1" || exit 1 +fi + +GIT_SHA=$( git rev-parse --short HEAD ) + +DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 ) + +VERTAG=$( git tag -l | tail -1 ) + +VERSION=${VERTAG}+${DATE}_${GIT_SHA} + +rm -rf .git +find . -name .gitignore -print0 | xargs -0 rm -f + +cd "$CWD" +rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz +mv $GITDIR $PRGNAM-$VERSION +tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION + +echo +echo "Created tarball: $PRGNAM-$VERSION.tar.xz" +echo "VERSION=\"$VERSION\"" +echo "MD5SUM=\"$( md5sum $PRGNAM-$VERSION.tar.xz | cut -d' ' -f1 )\"" diff --git a/games/syobonaction/icons/16.png b/games/syobonaction/icons/16.png Binary files differnew file mode 100644 index 0000000000000..7436458323b74 --- /dev/null +++ b/games/syobonaction/icons/16.png diff --git a/games/syobonaction/icons/32.png b/games/syobonaction/icons/32.png Binary files differnew file mode 100644 index 0000000000000..2542d94a54e4c --- /dev/null +++ b/games/syobonaction/icons/32.png diff --git a/games/syobonaction/syobonaction.png b/games/syobonaction/icons/48.png Binary files differindex 1a261901a8810..1a261901a8810 100644 --- a/games/syobonaction/syobonaction.png +++ b/games/syobonaction/icons/48.png diff --git a/games/syobonaction/syobonaction.6 b/games/syobonaction/syobonaction.6 index 2de3bcad045f2..7b8427fe24f09 100644 --- a/games/syobonaction/syobonaction.6 +++ b/games/syobonaction/syobonaction.6 @@ -1,181 +1,88 @@ -.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) -.\" -.\" Standard preamble: -.\" ======================================================================== -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp +.\" Man page generated from reStructuredText. +. +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] .. -.de Vb \" Begin verbatim text -.ft CW -.nf -.ne \\$1 +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: .. -.de Ve \" End verbatim text -.ft R -.fi +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.\" Set up some character translations and predefined strings. \*(-- will -.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left -.\" double quote, and \*(R" will give a right double quote. \*(C+ will -.\" give a nicer C++. Capital omega is used to do unbreakable dashes and -.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, -.\" nothing in troff, for use with C<>. -.tr \(*W- -.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' -.ie n \{\ -. ds -- \(*W- -. ds PI pi -. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch -. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch -. ds L" "" -. ds R" "" -. ds C` "" -. ds C' "" -'br\} -.el\{\ -. ds -- \|\(em\| -. ds PI \(*p -. ds L" `` -. ds R" '' -. ds C` -. ds C' -'br\} -.\" -.\" Escape single quotes in literal strings from groff's Unicode transform. -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" -.\" If the F register is turned on, we'll generate index entries on stderr for -.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index -.\" entries marked with X<> in POD. Of course, you'll have to process the -.\" output yourself in some meaningful fashion. -.\" -.\" Avoid warning from groff about undefined register 'F'. -.de IX -.. -.nr rF 0 -.if \n(.g .if rF .nr rF 1 -.if (\n(rF:(\n(.g==0)) \{ -. if \nF \{ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" -.. -. if !\nF==2 \{ -. nr % 0 -. nr F 2 -. \} -. \} -.\} -.rr rF -.\" -.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). -.\" Fear. Run. Save yourself. No user-serviceable parts. -. \" fudge factors for nroff and troff -.if n \{\ -. ds #H 0 -. ds #V .8m -. ds #F .3m -. ds #[ \f1 -. ds #] \fP -.\} -.if t \{\ -. ds #H ((1u-(\\\\n(.fu%2u))*.13m) -. ds #V .6m -. ds #F 0 -. ds #[ \& -. ds #] \& -.\} -. \" simple accents for nroff and troff -.if n \{\ -. ds ' \& -. ds ` \& -. ds ^ \& -. ds , \& -. ds ~ ~ -. ds / -.\} -.if t \{\ -. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" -. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' -. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' -. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' -. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' -. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' -.\} -. \" troff and (daisy-wheel) nroff accents -.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' -.ds 8 \h'\*(#H'\(*b\h'-\*(#H' -.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] -.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' -.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' -.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] -.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] -.ds ae a\h'-(\w'a'u*4/10)'e -.ds Ae A\h'-(\w'A'u*4/10)'E -. \" corrections for vroff -.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' -.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' -. \" for low resolution devices (crt and lpr) -.if \n(.H>23 .if \n(.V>19 \ -\{\ -. ds : e -. ds 8 ss -. ds o a -. ds d- d\h'-1'\(ga -. ds D- D\h'-1'\(hy -. ds th \o'bp' -. ds Th \o'LP' -. ds ae ae -. ds Ae AE -.\} -.rm #[ #] #H #V #F C -.\" ======================================================================== -.\" -.IX Title "SYOBONACTION 6" -.TH SYOBONACTION 6 "2014-03-27" "0.2" "SlackBuilds.org" -.\" For nroff, turn off justification. Always turn off hyphenation; it makes -.\" way too many mistakes in technical documents. -.if n .ad l -.nh -.SH "NAME" -syobonaction \- very difficult side\-scrolling platform game -.SH "SYNOPSIS" -.IX Header "SYNOPSIS" -\&\fBsyobonaction\fR [\fI\-nosound\fR] [\fI\-fullscreen\fR] -.SH "DESCRIPTION" -.IX Header "DESCRIPTION" -Syobon Action is a Japanese parody of Super Mario Brothers. -.PP -This man page documents OpenSyobon-M, the modified \s-1SDL\s0 port of OpenSyobon, -which is itself an unofficial \s-1SDL\s0 port of the original game. -.SH "OPTIONS" -.IX Header "OPTIONS" -.IP "\fB\-nosound\fR" 4 -.IX Item "-nosound" -Disables sound -.IP "\fB\-fullscreen\fR" 4 -.IX Item "-fullscreen" -Enables full-screen mode -.SH "CONTROLS" -.IX Header "CONTROLS" -.IP "\fBJump\fR" 4 -.IX Item "Jump" -Up arrow, Z, semicolon, joystick button 1 -.IP "\fBMovement\fR" 4 -.IX Item "Movement" -Left/right arrows, joystick left/right -.IP "\fBEnter Warp Pipe\fR" 4 -.IX Item "Enter Warp Pipe" -Down arrow, joystick down -.PP +.TH "SYOBONACTION" 6 "2021-10-28" "0.2" "SlackBuilds.org" +.SH NAME +syobonaction \- very difficult side-scrolling platform game +.\" RST source for syobonaction(6) man page. Convert with: +. +.\" rst2man.py syobonaction.rst > syobonaction.6 +. +.\" rst2man.py comes from the SBo development/docutils package. +. +.SH SYNOPSIS +.sp +syobonaction [\fI\-nosound\fP] [\fI\-\-fullscreen\fP] +.SH DESCRIPTION +.sp +Syobon Action is a 2D Japanese freeware video game notoriously known on +the Internet for its extremely difficult levels. It\(aqs a parody of +Super Mario Brothers. +.sp +This man page documents OpenSyobon\-M, the modified SDL port of OpenSyobon, +which is itself an unofficial SDL port of the original game. +.SH OPTIONS +.INDENT 0.0 +.TP +.B \fB\-nosound\fP +Disable sound in the game. +.TP +.B \fB\-fullscreen\fP +Run the game fullscreen (by default, it\(aqs in a window). +.UNINDENT +.SH CONTROLS +.INDENT 0.0 +.TP +.B \fBJump\fP +Up arrow, Z, semicolon, joystick button 1. +.TP +.B \fBMovement\fP +Left/right arrows, joystick left/right. +.TP +.B \fBEnter Warp Pipe\fP +Down arrow, joystick down. +.UNINDENT +.sp On the main menu, 0 through 9 select the starting level. -.SH "AUTHORS" -.IX Header "AUTHORS" -OpenSyobon-M was written by Wei Mingzhi <whistler_wmz at users.sf.net>. -This version contains additional levels made by Kazuki Okawa. -.PP -OpenSyobon-M is based on Open Syobon Action \s-1RC 2\s0 by Mathew Velasquez, which +.SH AUTHORS +.sp +OpenSyobon\-M was written by Wei Mingzhi <whistler_wmz at +users.sf.net>. This version contains additional levels made by Kazuki +Okawa. +.sp +OpenSyobon\-M is based on Open Syobon Action RC 2 by Mathew Velasquez, which is based on the original Syobon Action by Chiku. -.PP -This man page was written by B. Watson for the SlackBuild.org project. +.sp +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. +.SH SEE ALSO +.sp +The syobonaction readme: /usr/doc/syobonaction\-0.2/readme.txt +.\" Generated by docutils manpage writer. +. diff --git a/games/syobonaction/syobonaction.SlackBuild b/games/syobonaction/syobonaction.SlackBuild index 16fb11f8d4732..e2e3012803d9b 100644 --- a/games/syobonaction/syobonaction.SlackBuild +++ b/games/syobonaction/syobonaction.SlackBuild @@ -6,13 +6,16 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. -# The source is hosted on my server to avoid the JS-laden download page -# on codeplex. +# 20211028 bkw: +# - update for 0.2+20210411_f2e8629 (latest git, which uses SDL2, yay!) +# - new-style icons. +# - convert man page to rst, expand it slightly. +# - get rid of CRLFs in docs. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=syobonaction -VERSION=${VERSION:-0.2} +VERSION=${VERSION:-0.2+20210411_f2e8629} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -25,9 +28,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 @@ -57,14 +57,11 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z 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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ DATADIR=/usr/share/games/$PRGNAM BINDIR=/usr/games @@ -80,15 +77,24 @@ cp -r data/*/ $PKG/$DATADIR mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -# icon extracted from macosx/SyobonAction.icns with icns2png +# icons extracted from macosx/SyobonAction.icns with icns2png +for i in $CWD/icons/*.png; do + px=$( basename $i | cut -d. -f1 ) + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png +done + mkdir -p $PKG/usr/share/pixmaps -cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # man page written for this build mkdir -p $PKG/usr/man/man6 gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +sed -i 's,\r,,' data/*.txt cp -a data/*.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/syobonaction/syobonaction.info b/games/syobonaction/syobonaction.info index b541ebfc67da6..5019abdbcbfa3 100644 --- a/games/syobonaction/syobonaction.info +++ b/games/syobonaction/syobonaction.info @@ -1,8 +1,8 @@ PRGNAM="syobonaction" -VERSION="0.2" +VERSION="0.2+20210411_f2e8629" HOMEPAGE="https://github.com/CecilHarvey/syobon/" -DOWNLOAD="https://slackware.uk/~urchlay/src/syobonaction-0.2.tar.gz" -MD5SUM="5c85c936a0436e5b0b85a08abcd5b105" +DOWNLOAD="https://slackware.uk/~urchlay/src/syobonaction-0.2+20210411_f2e8629.tar.xz" +MD5SUM="2f764bfd7cb42ceea871e6ff6508115c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/games/syobonaction/syobonaction.pod b/games/syobonaction/syobonaction.pod deleted file mode 100644 index 1d5dfae27307a..0000000000000 --- a/games/syobonaction/syobonaction.pod +++ /dev/null @@ -1,63 +0,0 @@ -# pod source for syobonaction man page -# pod2man -s6 -r0.2 --stderr -cSlackBuilds.org syobonaction.pod > syobonaction.6 - -=pod - -=head1 NAME - -B<syobonaction> - I<very> difficult side-scrolling platform game - -=head1 SYNOPSIS - -B<syobonaction> [I<-nosound>] [I<-fullscreen>] - -=head1 DESCRIPTION - -Syobon Action is a Japanese parody of Super Mario Brothers. - -This man page documents OpenSyobon-M, the modified SDL port of OpenSyobon, -which is itself an unofficial SDL port of the original game. - -=head1 OPTIONS - -=over - -=item B<-nosound> - -Disables sound - -=item B<-fullscreen> - -Enables full-screen mode - -=back - -=head1 CONTROLS - -=over - -=item B<Jump> - -Up arrow, Z, semicolon, joystick button 1 - -=item B<Movement> - -Left/right arrows, joystick left/right - -=item B<Enter Warp Pipe> - -Down arrow, joystick down - -=back - -On the main menu, 0 through 9 select the starting level. - -=head1 AUTHORS - -OpenSyobon-M was written by Wei Mingzhi <whistler_wmz at users.sf.net>. -This version contains additional levels made by Kazuki Okawa. - -OpenSyobon-M is based on Open Syobon Action RC 2 by Mathew Velasquez, which -is based on the original Syobon Action by Chiku. - -This man page was written by B. Watson for the SlackBuild.org project. diff --git a/games/syobonaction/syobonaction.rst b/games/syobonaction/syobonaction.rst new file mode 100644 index 0000000000000..a8da5742896cd --- /dev/null +++ b/games/syobonaction/syobonaction.rst @@ -0,0 +1,75 @@ +.. RST source for syobonaction(6) man page. Convert with: +.. rst2man.py syobonaction.rst > syobonaction.6 +.. rst2man.py comes from the SBo development/docutils package. + +.. |version| replace:: 0.2 +.. |date| date:: + +============ +syobonaction +============ + +------------------------------------------- +very difficult side-scrolling platform game +------------------------------------------- + +:Manual section: 6 +:Manual group: SlackBuilds.org +:Date: |date| +:Version: |version| + +SYNOPSIS +======== + +syobonaction [*-nosound*] [*--fullscreen*] + +DESCRIPTION +=========== + +Syobon Action is a 2D Japanese freeware video game notoriously known on +the Internet for its extremely difficult levels. It's a parody of +Super Mario Brothers. + +This man page documents OpenSyobon-M, the modified SDL port of OpenSyobon, +which is itself an unofficial SDL port of the original game. + +OPTIONS +======= + +**-nosound** + Disable sound in the game. + +**-fullscreen** + Run the game fullscreen (by default, it's in a window). + +CONTROLS +======== + +**Jump** + Up arrow, Z, semicolon, joystick button 1. + +**Movement** + Left/right arrows, joystick left/right. + +**Enter Warp Pipe** + Down arrow, joystick down. + +On the main menu, 0 through 9 select the starting level. + +AUTHORS +======= + +OpenSyobon-M was written by Wei Mingzhi <whistler_wmz at +users.sf.net>. This version contains additional levels made by Kazuki +Okawa. + +OpenSyobon-M is based on Open Syobon Action RC 2 by Mathew Velasquez, which +is based on the original Syobon Action by Chiku. + +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. + +SEE ALSO +======== + +The syobonaction readme: /usr/doc/syobonaction-|version|/readme.txt |