mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/scanmem: Updated for version 0.15.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
80f7031b22
commit
d216b88a73
3 changed files with 44 additions and 30 deletions
|
@ -1,11 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script scanmem
|
||||
# written by chinarulezzz s.alex08@mail.ru
|
||||
# Slackware build script for scanmem
|
||||
|
||||
# Copyright 2014 - 2015 chinarulezzz s.alex08@mail.ru
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=scanmem
|
||||
VERSION=${VERSION:-0.12}
|
||||
VERSION=${VERSION:-0.15.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -42,50 +60,46 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
unzip $CWD/v$VERSION.zip
|
||||
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 \
|
||||
\( -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 {} \;
|
||||
|
||||
./autogen.sh
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make OS_CFLAGS="$SLKCFLAGS"
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
# Remove unused GameConqueror files from usr/share/locale
|
||||
find $PKG/usr/share/locale -name GameConqueror.mo -delete
|
||||
|
||||
# Remove usr/share* empty directories
|
||||
find $PKG -depth -empty -exec rmdir {} \;
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
for i in $( find $PKG/usr/man -type l ) ; do
|
||||
ln -s $( readlink $i ).gz $i.gz ;
|
||||
rm $i ;
|
||||
done
|
||||
|
||||
# move any generated man pages to their proper location
|
||||
#if [ -d $PKG/usr/share/man ]; then
|
||||
# mv $PKG/usr/share/man $PKG/usr
|
||||
# gzip -9 $PKG/usr/man/man?/*.?
|
||||
#fi
|
||||
|
||||
# Add docs, and if present, built documentation to the proper location
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a TODO README COPYING NEWS gpl-2.0.txt gpl-3.0.txt \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
#if [ -d $PKG/usr/share/doc ]; then
|
||||
# mv $PKG/usr/share/doc/scanmem/* $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||
# rm -rf $PKG/usr/share/doc
|
||||
#fi
|
||||
|
||||
cp -a COPYING NEWS README TODO gpl-2.0.txt gpl-3.0.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="scanmem"
|
||||
VERSION="0.12"
|
||||
HOMEPAGE="http://taviso.decsystem.org"
|
||||
DOWNLOAD="http://scanmem.googlecode.com/files/scanmem-0.12.tar.gz"
|
||||
MD5SUM="2ad341798525c9243b6f909a9fe5aa4d"
|
||||
VERSION="0.15.2"
|
||||
HOMEPAGE="http://taviso.decsystem.org/scanmem.html"
|
||||
DOWNLOAD="https://github.com/scanmem/scanmem/archive/v0.15.2.zip"
|
||||
MD5SUM="523d5217b85295cbfb72441090dc0b31"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -14,6 +14,6 @@ scanmem:
|
|||
scanmem: scanmem requires libreadline to read commands interactively,
|
||||
scanmem: and /proc must be mounted.
|
||||
scanmem:
|
||||
scanmem: homepage: http://taviso.decsystem.org
|
||||
scanmem: homepage: http://taviso.decsystem.org/scanmem.html
|
||||
scanmem:
|
||||
scanmem:
|
||||
|
|
Loading…
Reference in a new issue