aboutsummaryrefslogtreecommitdiff
path: root/games/blobwars/blobwars.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-15 18:11:39 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:44:40 -0400
commit418910b40c865c7458d5fa66e4d294362d6c83ed (patch)
tree06a234236f015197e03eb58b7dde0b660f5f4438 /games/blobwars/blobwars.SlackBuild
parentfc90ba636e076681a6f9da7a0d28198944f6576b (diff)
games/blobwars Updated for version 1.19.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/blobwars/blobwars.SlackBuild')
-rw-r--r--games/blobwars/blobwars.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/games/blobwars/blobwars.SlackBuild b/games/blobwars/blobwars.SlackBuild
index e7164471466a9..102d1a8498d81 100644
--- a/games/blobwars/blobwars.SlackBuild
+++ b/games/blobwars/blobwars.SlackBuild
@@ -4,7 +4,7 @@
# Written by Tim Dickson tim@tree-of-life.co.uk
PRGNAM=blobwars
-VERSION=${VERSION:-1.18}
+VERSION=${VERSION:-1.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,20 +55,19 @@ if [ "$ARCH" = "x86_64" ]; then
sed -i -e 's/-g games//' -e 's/-Werror//' makefile
fi
+# Fix doc installation path
+sed -i 's/share\/doc/doc/' makefile
+
# Compile the application and install it into the $PKG directory
-make
+RELEASE=1 make
make install DESTDIR=$PKG
# Strip binaries and libraries
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Copy program documentation into the package
# Also, include the SlackBuild script in the documentation directory
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- $PKG/usr/share/doc \
- $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Copy the slack-desc and doinst.sh into ./install