Commits

Moises Henriquez committed 90c046b

supertux fix SB not returning 1 when failing

  • Participants
  • Parent commits 811b522

Comments (0)

Files changed (1)

File var/vabs/supertuxkart/src/supertuxkart.SlackBuild

 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
 MAKEDEPENDS=${MAKEDEPENDS:-"curl fribidi bluez mesa glu libogg libvorbis openal-soft openssl"} #Add deps needed TO BUILD this package here.
+NUMJOBS=${NUMJOBS:-"-j6"}
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 #EXTRACT SOURCES
 #-----------------------------------------------------
 echo "Extracting source..."
-tar xvf $CWD/$NAME-$VERSION-src.tar.* || exit 1
+# Spare the output of extracting 219MB of source code
+tar xf $CWD/$NAME-$VERSION-src.tar.* --checkpoint=10000 || exit 1
 #this moves whatever was extracted to the std dirname we are expecting
 mv * $NAME-$VERSION &> /dev/null 2>&1
 mkdir -p $PKG
   CFLAGS="$SLKCFLAGS" \
   CXXFLAGS="$SLKCFLAGS" \
   NDEBUG=1 \
-  make
+  make || exit 1
 cd -
 
 # Now make SuperTuxKart
     -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
     -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
     -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_BUILD_TYPE=Release ..
-  make VERBOSE=1
-  make install DESTDIR=$PKG
+    -DCMAKE_BUILD_TYPE=Release .. || exit 1
+  make VERBOSE=1 || exit 1
+  make install DESTDIR=$PKG || exit 1
 cd ..