diff options
author | Daniel de Kok <danieldk@pobox.com> | 2010-05-12 17:39:11 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:39:11 +0200 |
commit | 2a35a1671f71cd959426da6d03a0da80e2bfd370 (patch) | |
tree | 7825e12d1afe4d6944dac6bd42b5296c34637c15 /games/defcon/defcon.SlackBuild | |
parent | d5e01a94c374e8303f5b77580b6f3311adcd3456 (diff) |
games/defcon: Updated for version 1.42
Diffstat (limited to 'games/defcon/defcon.SlackBuild')
-rw-r--r-- | games/defcon/defcon.SlackBuild | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/games/defcon/defcon.SlackBuild b/games/defcon/defcon.SlackBuild index 3e5a2d1edeff7..20c6e4eb5b17d 100644 --- a/games/defcon/defcon.SlackBuild +++ b/games/defcon/defcon.SlackBuild @@ -22,41 +22,33 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Exit on most errors +set -e + PRGNAM=defcon VERSION=1.42 +ARCHIVEVER=v1.42 ARCH=i686 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -ARCHIVEVER="v${VERSION}" - -# Go ahead and bail out now if the user didn't follow directions in the README -if [ ! -e $CWD/sounds.dat ]; then - echo ; echo "Did you read $CWD/README?" - echo "You need this: http://www.everybody-dies.com/downloads/sounds.dat" - echo ; exit 1 -fi - -set -e # Exit on most errors - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$ARCHIVEVER.tar.gz +tar xzvf $CWD/$PRGNAM-$ARCHIVEVER.tar.gz cd $PRGNAM-$ARCHIVEVER chown -R root:root . chmod -R u+w,go+r-w,a-s . mkdir -p $PKG/usr/lib/$PRGNAM $PKG/usr/bin cp -a lib/* $PKG/usr/lib/$PRGNAM -install -m 0644 $CWD/sounds.dat $PKG/usr/lib/$PRGNAM -install -m 0755 $CWD/defcon.sh $PKG/usr/bin/defcon +install -m0644 -g root -o root $CWD/sounds.dat $PKG/usr/lib/$PRGNAM +install -m0755 -g root -o root $CWD/defcon.sh $PKG/usr/bin/defcon mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/README-SDL.txt doc/linux.txt $PKG/usr/doc/$PRGNAM-$VERSION |