mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/knights: New maintainer, FHS fix.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
7f99c64498
commit
eb91861680
2 changed files with 19 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
# Copyright 2011, 2012 Chris Abela, Malta
|
||||
# Copyright 2014 Ryan P.C. McQuen, ryanpcmcquen@member.fsf.org, WA
|
||||
# Now maintained by B. Watson (yalhcru@gmail.com)
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -24,14 +25,20 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20170309 bkw:
|
||||
# - take over maintenance
|
||||
# - i486 => i586
|
||||
# - binary in /usr/games
|
||||
# - BUILD=2
|
||||
|
||||
PRGNAM=knights
|
||||
VERSION=${VERSION:-2.5.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -42,8 +49,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -79,13 +86,16 @@ cd build
|
|||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DMAN_INSTALL_DIR=/usr/man \
|
||||
-DBIN_INSTALL_DIR=/usr/games \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make VERBOSE=1
|
||||
make install DESTDIR=$PKG
|
||||
make install/strip 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
|
||||
# 20170309 bkw: I thought about doing this:
|
||||
#chmod 644 $PKG/usr/share/applications/kde4/$PRGNAM.desktop
|
||||
# ...but most of the existing files there from other packages are +x,
|
||||
# not sure if KDE cares about the permissions but I'll leave it as-is.
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a DESIGN README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="58237998aeee8b6414f6e6f92d070395"
|
|||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Ryan P.C. McQuen"
|
||||
EMAIL="ryanpcmcquen@member.fsf.org"
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
||||
|
|
Loading…
Reference in a new issue