diff options
author | chinarulezzz <s.alex08@mail.ru> | 2015-09-19 05:24:11 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-19 05:24:11 +0700 |
commit | d216b88a737de64ba0856f72c07e28f6cc5811c7 (patch) | |
tree | 677db56a4ad95f37d27ce920b8044c6e588b8873 /system/scanmem/scanmem.SlackBuild | |
parent | 80f7031b22fe0925e688b6222f301700231f5b35 (diff) |
system/scanmem: Updated for version 0.15.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/scanmem/scanmem.SlackBuild')
-rw-r--r-- | system/scanmem/scanmem.SlackBuild | 66 |
1 files changed, 40 insertions, 26 deletions
diff --git a/system/scanmem/scanmem.SlackBuild b/system/scanmem/scanmem.SlackBuild index fa8d6250c799..941c6f985679 100644 --- a/system/scanmem/scanmem.SlackBuild +++ b/system/scanmem/scanmem.SlackBuild @@ -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 -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 +# Remove usr/share* empty directories +find $PKG -depth -empty -exec rmdir {} \; -# 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 +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 -# 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 +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 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 |