summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-08-11 04:14:38 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:36 +0700
commitf4fc020458a52a9536131866ef43bf48828fae43 (patch)
tree8e40efcad685f7d5838d8dbf3625ff9844ce9988 /games
parent2e1a8e4303660543b521b682336241a54fb43a14 (diff)
downloadslackbuilds-f4fc020458a52a9536131866ef43bf48828fae43.tar.gz
games/warzone2100: Clean up build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/warzone2100/warzone2100.SlackBuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/games/warzone2100/warzone2100.SlackBuild b/games/warzone2100/warzone2100.SlackBuild
index ed16befad9..6bc4da540f 100644
--- a/games/warzone2100/warzone2100.SlackBuild
+++ b/games/warzone2100/warzone2100.SlackBuild
@@ -23,9 +23,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20200811 bkw: fix various issues on behalf of the SBo team:
+# - man pages were in /usr/share/man
+# - old source wasn't being deleted before extraction
+# - removed "-GNinja" from cmake command line: unnecessary, and adds a
+# dependency on ninja (which wasn't listed in the .info file)
+# - got rid of unneeded template code (no perllocal.pod gets installed)
+# - move binary to /usr/games (since it has a section 6 man page)
+
PRGNAM=warzone2100
VERSION=${VERSION:-3.4.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,6 +68,7 @@ set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
+rm -rf $PRGNAM
tar xvf $CWD/${PRGNAM}_src.tar.?z
cd $PRGNAM
chown -R root:root .
@@ -76,18 +85,12 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
- -GNinja ..
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DCMAKE_INSTALL_BINDIR=games \
+ ..
DESTDIR=$PKG cmake --build . --target install
cd ..
-# find $PKG/usr/share/man -type f -exec gzip -9 {} \;
-# for i in $( find $PKG/usr/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
-find $PKG -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-
# Let's not pollute the themed icon directory
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps