mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/pinball: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
67e4e4cd2e
commit
50eb656252
6 changed files with 96 additions and 42 deletions
|
@ -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
|
||||
|
|
9
games/pinball/doinst.sh
Normal file
9
games/pinball/doinst.sh
Normal file
|
@ -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
|
50
games/pinball/pinball-config.6
Normal file
50
games/pinball/pinball-config.6
Normal file
|
@ -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).
|
|
@ -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
|
||||
|
||||
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/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
|
||||
|
||||
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
|
||||
mkdir -p $PKG/usr/man/man6
|
||||
gzip -9c < $CWD/pinball-config.6 > $PKG/usr/man/man6/pinball-config.6.gz
|
||||
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue