games/berusky: Updated for version 1.7.2.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-22 21:48:38 -05:00 committed by Willy Sudiarto Raharjo
parent a422e76777
commit 002efb57d2
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 23 additions and 20 deletions

View file

@ -22,10 +22,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
# - update to v1.7.2 (old version segfaulted on startup, on 15.0).
# - binary in /usr/games.
# - fix icon (png file was named .svg).
# - fix .desktop.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=berusky
VERSION=${VERSION:-1.7}
VERSION=${VERSION:-1.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +44,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,32 +76,32 @@ 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 {} \;
# 20220222 bkw: do not use template, it trips over dangling symlinks.
find . -type f -exec chmod 644 {} \+
find . -type d -exec chmod 755 {} \+
sed -i 's/var\/games/usr\/share/' src/defines.h
autoreconf -if
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
CXXFLAGS="$SLKCFLAGS -std=c++11" \
sh ./configure \
--prefix=/usr \
--bindir=/usr/games \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--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
sed -i 's,/usr/bin,/usr/games,' $PKG/usr/share/berusky/berusky.ini
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.svg
install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -2,8 +2,8 @@
Name=Berusky
Name[he]=Berusky
Comment=Rescue the bugs!
Exec=berusky
Icon=berusky
Exec=/usr/games/berusky
Icon=/usr/share/pixmaps/berusky.png
Terminal=false
Type=Application
Categories=Game;LogicGame;

View file

@ -1,8 +1,8 @@
PRGNAM="berusky"
VERSION="1.7"
VERSION="1.7.2"
HOMEPAGE="http://anakreon.cz/?q=node/1"
DOWNLOAD="http://downloads.sourceforge.net/project/berusky/berusky/1.7/berusky-1.7.tar.gz"
MD5SUM="e76626588228b8d320772ea5c173579d"
DOWNLOAD="https://github.com/stransky/berusky/archive/v1.7.2/berusky-1.7.2.tar.gz"
MD5SUM="10ac9c9151b989d108eaa8adeb7fb93e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="berusky-data"