diff options
-rw-r--r-- | games/d1x-rebirth/d1x-rebirth.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/games/d1x-rebirth/d1x-rebirth.SlackBuild b/games/d1x-rebirth/d1x-rebirth.SlackBuild index 597fa866b8204..f9b3e8f86cbec 100644 --- a/games/d1x-rebirth/d1x-rebirth.SlackBuild +++ b/games/d1x-rebirth/d1x-rebirth.SlackBuild @@ -23,6 +23,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220321 bkw: Modified by SlackBuilds.org: fix 32-bit build. +# TODO: the executable needs to go in /usr/games, and the .desktop +# needs absolute paths to the icon and executable. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=d1x-rebirth @@ -40,9 +44,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -77,9 +78,15 @@ cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ + +# 20220321 bkw: I hate scons, and I hate people who use -Werror and +# don't give a sane way to disable it. I especially hate them if they +# write code that triggers warnings... 32-bit builds were failing +# because of this. +sed -i -e "s,'-W','-Wno-'," -e "s,'-Werror=','-Wno-error='," SConstruct # 'sharepath' is for the game-content data files, they can # also perhaps more conveniently go in ~/.d1x-rebirth... |