mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/crossfire-client: Updated for version 1.72.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
6ee2d01717
commit
2895c88381
2 changed files with 28 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for crossfire-client
|
||||
|
||||
# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
|
||||
# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,8 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=crossfire-client
|
||||
VERSION=${VERSION:-1.71.0}
|
||||
SRCSOUNDS=$(printf $PRGNAM | cut -c1-9)
|
||||
VERSION=${VERSION:-1.72.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -62,6 +63,7 @@ cd $TMP
|
|||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$SRCSOUNDS-sounds-$VERSION.tar.bz2
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -69,36 +71,35 @@ 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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--datadir=/usr/share/games \
|
||||
--with-sound-dir=/usr/share/games/$PRGNAM \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DMAN_INSTALL_DIR=/usr/man \
|
||||
-DSOUND=ON \
|
||||
-DLUA=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/share/$PRGNAM
|
||||
cp -rf $SRCSOUNDS-sounds-$VERSION/* $PKG/usr/share/$PRGNAM
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps/
|
||||
install -D -m644 pixmaps/48x48.png $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog README.rst TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
PRGNAM="crossfire-client"
|
||||
VERSION="1.71.0"
|
||||
VERSION="1.72.0"
|
||||
HOMEPAGE="http://crossfire.real-time.com"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/crossfire/crossfire-client/1.71.0/crossfire-client-1.71.0.tar.bz2"
|
||||
MD5SUM="a32b9a3cb42f65820c5a9193dcfa56d5"
|
||||
DOWNLOAD="https://downloads.sourceforge.net/project/crossfire/crossfire-client/1.72.0/crossfire-client-1.72.0.tar.bz2 \
|
||||
https://downloads.sourceforge.net/project/crossfire/crossfire-client/1.72.0/crossfire-sounds-1.72.0.tar.bz2"
|
||||
MD5SUM="d156f34330caa0b42126632cb04806f9 \
|
||||
3125f43dd6ccb7a0ff7a4e24acb973b8"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
REQUIRES="vala lua"
|
||||
MAINTAINER="Dimitris Zlatanidis"
|
||||
EMAIL="d.zlatanidis@gmail.com"
|
||||
|
|
Loading…
Reference in a new issue