summaryrefslogtreecommitdiff
path: root/games/vcmi/vcmi.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-02-19 08:28:56 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-21 06:26:56 +0700
commit2fd90df2c1c0dbb675c65d0b7574aa1e743e16a6 (patch)
treeaadb74df8bf45a6c24730a7533ea1ce93f9b28a0 /games/vcmi/vcmi.SlackBuild
parentcb01bc7613124b424c67870725d47b70cdf079d2 (diff)
downloadslackbuilds-2fd90df2c1c0dbb675c65d0b7574aa1e743e16a6.tar.gz
games/vcmi: Updated for version 0.97.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/vcmi/vcmi.SlackBuild')
-rw-r--r--games/vcmi/vcmi.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/games/vcmi/vcmi.SlackBuild b/games/vcmi/vcmi.SlackBuild
index 37a4dc2e42..47ff676777 100644
--- a/games/vcmi/vcmi.SlackBuild
+++ b/games/vcmi/vcmi.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vcmi
-VERSION=${VERSION:-0.96}
+VERSION=${VERSION:-0.97}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,9 +69,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# install vcmi engine in /usr/share/games
-patch -p1 < $CWD/vcmi_share.patch
-
mkdir -p build
cd build
cmake \
@@ -86,6 +83,14 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# remove static library
+rm $PKG/usr/lib/libfuzzylite-static.a
+
+# fix lib path
+if [ "$ARCH" = "x86_64" ]; then
+ mv $PKG/usr/lib/ $PKG/usr/lib64
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild