mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
2f734e2351
PR: 191821 Submitted by: Ports Fury
24 lines
699 B
Bash
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
|