summaryrefslogtreecommitdiff
path: root/system/sakura/sakura.SlackBuild
diff options
context:
space:
mode:
authorEugene Wissner <belka.ew@gmail.com>2010-06-19 09:20:30 -0500
committerErik Hanson <erik@slackbuilds.org>2010-06-20 15:19:58 -0500
commit3ed30e2532209265ce7bd6214fc731841348bcb6 (patch)
treeda8dfab859280c7fa059101edd5c5e4d9892bf74 /system/sakura/sakura.SlackBuild
parent5a25cb8e4a10af08d81a1cddda4032901d85acd1 (diff)
downloadslackbuilds-3ed30e2532209265ce7bd6214fc731841348bcb6.tar.gz
system/sakura: Updated for version 2.3.8.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/sakura/sakura.SlackBuild')
-rw-r--r--system/sakura/sakura.SlackBuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/system/sakura/sakura.SlackBuild b/system/sakura/sakura.SlackBuild
index ca8a783a93..731306263c 100644
--- a/system/sakura/sakura.SlackBuild
+++ b/system/sakura/sakura.SlackBuild
@@ -3,9 +3,10 @@
# Slackware build script for sakura
# Written by Erik Hanson erik@slackbuilds.org
# Updated by Kristaps Esterlins <esterlinsh[at]gmail.com>
+# Updated by Eugene Wissner <belka.ew@gmail.com>
PRGNAM=sakura
-VERSION=${VERSION:-2.3.2}
+VERSION=${VERSION:-2.3.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -19,6 +20,16 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -32,6 +43,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -43,16 +55,17 @@ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS -DNDEBUG" \
+ -DCMAKE_BUILD_TYPE=Release \
.
make
make install DESTDIR=$PKG
strip --strip-unneeded $PKG/usr/bin/sakura
-mkdir -p $PKG/usr/share/applications
-cat $TMP/$PRGNAM-$VERSION/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+mv $PKG/usr/share/{man,doc} $PKG/usr
+find $PKG/usr/man -type f -exec gzip -9 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS GPL INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS GPL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install