diff options
Diffstat (limited to 'games/golly/golly.SlackBuild')
-rw-r--r-- | games/golly/golly.SlackBuild | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/games/golly/golly.SlackBuild b/games/golly/golly.SlackBuild index bab8f8dadea8..3363c45661c9 100644 --- a/games/golly/golly.SlackBuild +++ b/games/golly/golly.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh - + # Slackware build script for golly - + # Copyright 2012, Glenn Becker, Arlington MA USA # All rights reserved. # @@ -21,12 +21,12 @@ # 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=golly VERSION=${VERSION:-2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} - + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -34,12 +34,12 @@ if [ -z "$ARCH" ]; then *) ARCH=$( uname -m ) ;; esac fi - + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} - + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -53,9 +53,9 @@ else SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi - + set -e - + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -69,7 +69,7 @@ find . \ -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; - + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -80,32 +80,32 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux - + make make install DESTDIR=$PKG - + 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 - + for i in 16 32 48; do convert appicon${i}.ico -resize ${i}x${i}! $PRGNAM-${i}.png mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps/ install -D -m 0644 $PRGNAM-${i}.png \ $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png done - + convert appicon.xpm $PRGNAM.png install -D -m 0644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png - + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ LICENSE README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - + mkdir $PKG/usr/share/applications cat $CWD/golly.desktop > $PKG/usr/share/applications/golly.desktop - + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |