games/pacman: Updated script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d3cee67978
commit
5a33fb48c1
|
@ -1,3 +1,6 @@
|
|||
This is a clone of the original pacman by Namco.
|
||||
|
||||
NOTE: this is NOT Arch Linux's pacman :^)
|
||||
|
||||
If your CPU supports multithreading, you can pass NUMJOBS like so:
|
||||
$ NUMJOBS="-j$(nproc)" ./pacman.SlackBuild
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# Slackware build script for pacman
|
||||
|
||||
# Copyright 2018 Azure Zanculmarktum <zanculmarktum@gmail.com>
|
||||
# Copyright 2018 B. Watson <yalhcru@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -22,9 +23,18 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20180921 bkw:
|
||||
# - fix installDir sed.
|
||||
# - fix .desktop file.
|
||||
# - install binary in /usr/games.
|
||||
# - stop updating the system-wide desktop database on 'make install-strip'.
|
||||
|
||||
# 20180924 azure:
|
||||
# - add NUMJOBS on 'make'.
|
||||
|
||||
PRGNAM=pacman
|
||||
VERSION=${VERSION:-0.9}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -65,15 +75,17 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
sed -i -e '/strcpy(installDir, "\/usr\//s@local/@@p' src/platform.cpp
|
||||
sed -i -e '/strcpy(installDir, "\/usr\//s@local/@@' src/platform.cpp
|
||||
sed -i -e '\,Icon=/usr/local,s,local/,,' $PRGNAM.desktop
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--bindir=/usr/games \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
|
@ -82,8 +94,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
make $NUMJOBS
|
||||
make install-strip DESTDIR=$PKG UPDATE_DESKTOP=echo
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
Loading…
Reference in New Issue