diff options
-rw-r--r-- | games/pinball/README | 6 | ||||
-rw-r--r-- | games/pinball/doinst.sh | 9 | ||||
-rw-r--r-- | games/pinball/pinball-config.6 | 50 | ||||
-rw-r--r-- | games/pinball/pinball.SlackBuild | 61 | ||||
-rw-r--r-- | games/pinball/pinball.info | 4 | ||||
-rw-r--r-- | games/pinball/slack-desc | 8 |
6 files changed, 96 insertions, 42 deletions
diff --git a/games/pinball/README b/games/pinball/README index 8573c9c73d..7faf6c5318 100644 --- a/games/pinball/README +++ b/games/pinball/README @@ -1,5 +1,7 @@ -The Emilia Pinball: project is an open source pinball: simulator -intended for linux machines by Henrik Enqvist. +pinball (open source pinball simulator) + +The Emilia Pinball project is an open source pinball simulator +intended for Linux machines, by Henrik Enqvist. slibtool users should use 'clibtool-shared' with pinball which will install the libtool archive (.la) files. Pinball will fail to load any diff --git a/games/pinball/doinst.sh b/games/pinball/doinst.sh new file mode 100644 index 0000000000..65c7e2eeb9 --- /dev/null +++ b/games/pinball/doinst.sh @@ -0,0 +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/pinball/pinball-config.6 b/games/pinball/pinball-config.6 new file mode 100644 index 0000000000..9ef95b7fd9 --- /dev/null +++ b/games/pinball/pinball-config.6 @@ -0,0 +1,50 @@ +.TH "PINBALL-CONFIG" "6" +.SH "NAME" +pinball-config \- returns information about installed pinball libraries and +binaries +.SH SYNOPSIS +.B pinball-config +[OPTIONS] +.SH DESCRIPTION +The +.B pinball-config +shell script is designed to retrieve the configuration information about +the libraries and binaries of the +.B pinball +package. +.SH "OPTIONS" +.TP +\fB\-\-version\fR +displays the pinball version number +.TP +\fB\-\-libs\fR +lists libraries needed for building new levels +.TP +\fB\-\-cflags\fR +lists additional compilation flags needed +.TP +\fB\-\-datadir\fR +Display the installation datadir +.TP +\fB\-\-libdir\fR +Display the installation libdir +.TP +\fB\-\-prefix\fR +Display the installation prefix +.TP +\fB\-\-exec\-prefix\fR +Display the installation exec-prefix +.SH "SEE ALSO" +.PP +The program is documented fully by the +.B README +file that can be found under +.B /usr/share/doc/pinball/README +on +.B Debian GNU/Linux. +.SH "AUTHOR" +.PP +This manual page was written by Jochen Friedrich <jochen@scram.de> for +the +.B Debian GNU/Linux +system (but may be used by others). diff --git a/games/pinball/pinball.SlackBuild b/games/pinball/pinball.SlackBuild index 05a1e37cfb..46f9710036 100644 --- a/games/pinball/pinball.SlackBuild +++ b/games/pinball/pinball.SlackBuild @@ -2,25 +2,18 @@ # Slackware build script for pinball -# Copyright 2015-2016, 2018-2019 Hunter Sezen California, USA -# 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. +# Original author: Hunter Sezen. +# Modified and now maintained by B. Watson <urchlay@slackware.uk>. + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20240902 bkw: BUILD=3 +# - new maintainer. +# - relicense as WTFPL. +# - add .desktop and icon to package. +# - add doinst.sh. +# - clean up README and slack-desc. +# - add Debian's man page for pinball-config. cd $(dirname $0) ; CWD=$(pwd) @@ -38,9 +31,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 @@ -73,11 +63,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 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 {} + # Use a sys version of ltdl # https://github.com/sergiomb2/pinball/pull/23 @@ -103,18 +90,24 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/share/{applications,pixmaps,icons/hicolor/48x48/apps} +cp -a pinball.desktop $PKG/usr/share/applications +cp -a pinball.png $PKG/usr/share/icons/hicolor/48x48/apps +ln -s ../icons/hicolor/48x48/apps/pinball.png $PKG/usr/share/pixmaps/pinball.png -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/man/man6 +gzip -9c < $CWD/pinball-config.6 > $PKG/usr/man/man6/pinball-config.6.gz -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog License.txt README \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a AUTHORS COPYING ChangeLog License.txt README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/pinball/pinball.info b/games/pinball/pinball.info index 243c102c45..239f185578 100644 --- a/games/pinball/pinball.info +++ b/games/pinball/pinball.info @@ -6,5 +6,5 @@ MD5SUM="a3dea5d98a643fd5be07564d1cf5f3cf" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Hunter Sezen" -EMAIL="orbea@riseup.net" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/games/pinball/slack-desc b/games/pinball/slack-desc index 695f047ee8..0e5733dabd 100644 --- a/games/pinball/slack-desc +++ b/games/pinball/slack-desc @@ -6,12 +6,12 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -pinball: pinball (open source pinball: simulator) +pinball: pinball (open source pinball simulator) pinball: -pinball: The Emilia Pinball: project is an open source pinball: simulator -pinball: intended for linux machines by Henrik Enqvist. +pinball: The Emilia Pinball project is an open source pinball simulator +pinball: intended for Linux machines, by Henrik Enqvist. pinball: -pinball: Homepage: http://pinball:.sourceforge.net/ +pinball: Homepage: https://github.com/sergiomb2/pinball pinball: pinball: pinball: |