diff options
Diffstat (limited to 'games/unvanquished/unvanquished.SlackBuild')
-rw-r--r-- | games/unvanquished/unvanquished.SlackBuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/games/unvanquished/unvanquished.SlackBuild b/games/unvanquished/unvanquished.SlackBuild index 0ddd97b02b61..5048dd33d579 100644 --- a/games/unvanquished/unvanquished.SlackBuild +++ b/games/unvanquished/unvanquished.SlackBuild @@ -22,9 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20210216 bkw: modified by SlackBuilds.org, BUILD=2: +# - add -fpermissive to get it to compile +# - include the complete game data (*.pk3 files) so the game actually runs +# - add sysctl stuff to let the game actually start up +# Apparently this build never worked and nobody noticed. + PRGNAM=unvanquished VERSION=${VERSION:-0.50.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCNAM=Unvanquished @@ -101,7 +107,7 @@ mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -fpermissive" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_CGAME=OFF \ -DBUILD_SGAME=OFF \ @@ -144,9 +150,10 @@ ln -sf $PKG/etc/$PRGNAM/config/server.cfg \ ln -sf $PKG/etc/$PRGNAM/config/maprotation.cfg \ $PKG/var/lib/$PRGNAM-server/config/maprotation.cfg -# Copy the data-game +# Copy the game data mkdir -p $PKG/usr/share/games/$PRGNAM/pkg -cp $CWD/$PRGNAM\_$VERSION.pk3 $PKG/usr/share/games/$PRGNAM/pkg +unzip $CWD/${PRGNAM}_$VERSION.zip '*/pkg/*' +cp -a ${PRGNAM}_$VERSION/pkg/* $PKG/usr/share/games/$PRGNAM/pkg mkdir -p $PKG/usr/share/applications install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop @@ -158,6 +165,12 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a GPL.txt README.md COPYING.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# 20210216 bkw: sysctl is needed per +# https://github.com/Unvanquished/Unvanquished/issues/944 +# It actually makes the game start up. +mkdir -p $PKG/etc/sysctl.d +cat $CWD/90-mmap_min_addr.conf > $PKG/etc/sysctl.d/90-mmap_min_addr.conf + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |