1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/games/lbreakout2/pkg-install
John Marino 2f734e2351 games/lbreakout2: Upgrade version 2.6 => 2.6.4 and stage
PR:		191821
Submitted by:	Ports Fury
2014-07-30 23:41:55 +00:00

24 lines
699 B
Bash

#!/bin/sh
SCOREDIR=/var/games
SCOREFILE=lbreakout2.hscr
if [ "$2" = "POST-INSTALL" -a -d "$SCOREDIR" ]; then
if [ ! -f "$SCOREDIR/$SCOREFILE" ]; then
echo "===> Creating initial high score file $SCOREDIR/$SCOREFILE"
install -o root -g games -m 664 ${PKG_PREFIX}/share/lbreakout2/empty.hscr $SCOREDIR/$SCOREFILE
fi
fi
if [ "$2" = "DEINSTALL" -a -d "$SCOREDIR" ]; then
if cmp -s ${PKG_PREFIX}/share/lbreakout2/empty.hscr $SCOREDIR/$SCOREFILE; then
rm -f $SCOREDIR/$SCOREFILE
else
echo "To completely remove the port, please remove the following"
echo "file manually, if it's no longer needed:"
echo
echo " $SCOREDIR/$SCOREFILE"
echo
fi
fi