diff options
Diffstat (limited to 'games/vegastrike/vegastrike.SlackBuild')
-rw-r--r-- | games/vegastrike/vegastrike.SlackBuild | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/games/vegastrike/vegastrike.SlackBuild b/games/vegastrike/vegastrike.SlackBuild index 462af92053..4b004e3532 100644 --- a/games/vegastrike/vegastrike.SlackBuild +++ b/games/vegastrike/vegastrike.SlackBuild @@ -23,9 +23,6 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=vegastrike -VERSION=${VERSION:-0.5.1.r1} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} PRGSRCSUF=${PRGSRCSUF:-.tar.bz2} PRGSRCNAME=${PRGSRCNAME:-$PRGNAM-src-*} @@ -47,6 +44,10 @@ PRGSPEECHSUF=${PRGSPEECHSUF%.tar} PRGSPEECHNAME=${PRGSPEECHNAME:-$PRGNAM-speech-*} PRGSPEECHNAME=${PRGSPEECHNAME%$PRGSPEECHSUF} +VERSION=${VERSION:-0.5.1.r1} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -84,7 +85,9 @@ tar xvf $CWD/$PRGSRCNAME$PRGSRCSUF cd $PRGSRCNAME -patch -p0 < $CWD/patch-$VERSION +declare patchdir="$CWD/patches" + +patch -p0 < "$patchdir/patch-${VERSION}_$BUILD" BUILDDIR=build mkdir -p $BUILDDIR @@ -110,6 +113,7 @@ cmake \ -DCMAKE_INSTALL_MANDIR=/usr/man \ -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \ -DCMAKE_SYSTEM_PROCESSOR=$ARCH \ + -DDISABLE_SERVER=${DISABLE_SERVER:-ON} \ .. make @@ -128,16 +132,34 @@ objconvdir=$vsbasedir/objconv mkdir -p $vsbasedir $bindir $objconvdir -for f in ./build/objconv/asteroidgen ./build/objconv/replace ./build/objconv/trisort ./build/vegaserver ./build/vegastrike ./build/setup/vssetup;do - cp $f $bindir +for f in ./build/vegaserver ./build/vegastrike ./build/setup/vssetup;do + if [[ -e "$f" ]];then + chmod +x $f + cp $f $bindir + fi done -for f in ./objconv/3ds2xml ./objconv/obj2xml ./objconv/wcp2xml;do - chmod -x $f - cp $f $objconvdir +for f in ./build/objconv/asteroidgen ./build/objconv/replace ./build/objconv/trisort ./build/objconv/mesh_tool ;do + if [[ -e "$f" ]];then + chmod +x $f + cp $f $objconvdir + fi done tar xvf $CWD/$PRGDATANAME$PRGDATASUF + +PARTSFIX=${PARTSFIX:-YES} + +case ${PARTSFIX^^} in +Y|YES|T|TRUE|ON|1) + cd $PRGDATANAME + patch -p0 < "$patchdir/patch_partsfix-${VERSION}_$BUILD" + cd - + ;; +*) + ;; +esac + mv $PRGDATANAME $vsdatadir tar xvf $CWD/$PRGEXTRANAME$PRGEXTRASUF @@ -171,3 +193,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} + |