[Slackbuilds-users] Updates - 20100517

Chess Griffin chess at chessgriffin.com
Tue May 18 18:43:38 UTC 2010


* Chess Griffin <chess at chessgriffin.com> [2010-05-18 06:17:56]:

> And since this script is one of mine, I thought I would respond.  The
> script works fine and the real problem is the stupid way upstream
> (OpenArena) handles versioning, but indeed the script can be improved
> with better logic to handle said stupidity.  It's been on my $TODO, in
> fact, but I have not had the time.
> 
> Patches to the script are welcome, or if somebody wants to take
> maintainership of the script and fix it, that is fine too.  Otherwise,
> I'll update the script when I can -- and I will try to bring it to a
> front burner but no promises.
> 

Well, that front burner came free.  :-)

Attached is a patch to the openarena.SlackBuild.  It seems to work fine
here, but I would welcome some testers.

-- 
Chess Griffin
-------------- next part --------------
--- /var/lib/sbopkg/SBo/13.0/games/openarena/openarena.SlackBuild	2010-04-18 21:56:59.000000000 -0400
+++ /home/chess/builds/openarena/openarena.SlackBuild	2010-05-18 09:06:47.000000000 -0400
@@ -2,7 +2,7 @@
 
 # Slackware build script for OpenArena
 
-# Copyright 2007-2009 Chess Griffin <chess at chessgriffin.com>
+# Copyright 2007-2010 Chess Griffin <chess at chessgriffin.com>
 # All rights reserved.
 #
 # Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,10 @@
 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=openarena
-VERSION=${VERSION:-0.8.1}
-FINAL_VERSION=${FINAL_VERSION:-0.8.5} # Keep this for future patches
+VERSION=${VERSION:-0.8.5}
+SRC_VERSION=${SRC_VERSION:-0.8.1} # Keep this for future patches
 ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}
 
 CWD=$(pwd)
@@ -62,11 +62,11 @@ fi
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRC_VERSION
 unzip -o $CWD/oa081.zip
 # Keep the following for any future patches
 unzip -o $CWD/oa085p.zip
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$SRC_VERSION
 chown -R root:root .
 find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -92,9 +92,9 @@ install -D -m 0644 $CWD/openarena.deskto
 mkdir -p $PKG/usr/share/pixmaps
 cp $CWD/*.png $PKG/usr/share/pixmaps
 
-mkdir -p $PKG/usr/doc/$PRGNAM-$FINAL_VERSION
-cp $DOCS $PKG/usr/doc/$PRGNAM-$FINAL_VERSION
-find $PKG/usr/doc/$PRGNAM-$FINAL_VERSION -type f -exec chmod 0644 {} \;
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
 
 mkdir -p $PKG/usr/share/games/openarena/{baseoa,missionpack}
 cp -rf {baseoa,missionpack}/ $PKG/usr/share/games/openarena/
@@ -121,4 +121,4 @@ fi
 chmod 755 $PKG/usr/games/openarena*
 
 cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$FINAL_VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20100518/85ce1dc3/attachment.sig>


More information about the SlackBuilds-users mailing list