aboutsummaryrefslogtreecommitdiff
path: root/system/sakura/sakura.SlackBuild
diff options
context:
space:
mode:
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 ca8a783a9316d..731306263ceb9 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