diff options
-rw-r--r-- | games/warzone2100/warzone2100.SlackBuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/games/warzone2100/warzone2100.SlackBuild b/games/warzone2100/warzone2100.SlackBuild index ed16befad9058..6bc4da540faa4 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 |