diff options
author | Amiralul <tanaselia@gmail.com> | 2010-05-11 20:00:37 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:37 +0200 |
commit | 869d8266afc67b19429d8e3d6bb940b090c38168 (patch) | |
tree | 3977756396384bbdbefe2226039dc676608bf62f /graphics/qcomicbook/qcomicbook.SlackBuild | |
parent | 9318ea7d973dc1d0645fd2eaca2e8ef50ca2c1f1 (diff) |
graphics/qcomicbook: Added to 12.0 repository
Diffstat (limited to 'graphics/qcomicbook/qcomicbook.SlackBuild')
-rw-r--r-- | graphics/qcomicbook/qcomicbook.SlackBuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/graphics/qcomicbook/qcomicbook.SlackBuild b/graphics/qcomicbook/qcomicbook.SlackBuild new file mode 100644 index 0000000000000..445943c2ac683 --- /dev/null +++ b/graphics/qcomicbook/qcomicbook.SlackBuild @@ -0,0 +1,56 @@ +#!/bin/sh + +# Slackware build script for QComicBook + +# Written by Amiralul (tanaselia@gmail.com) + +PRGNAM=qcomicbook +VERSION=0.3.4 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man + +make +make install DESTDIR=$PKG + +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |