summaryrefslogtreecommitdiff
path: root/academic/siril
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2017-07-09 18:35:12 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-07-12 16:39:17 +0100
commit59e559b6a841d70e7815bf52fc0fbbd3a1ace163 (patch)
treed538e49c5015a6aa9a43b97a4a03f6b1726f92ba /academic/siril
parentd18798c9141758ee0b692dd1c13f681ab2a89864 (diff)
downloadslackbuilds-59e559b6a841d70e7815bf52fc0fbbd3a1ace163.tar.gz
academic/siril: Fix doc ownership, use our cflags.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/siril')
-rw-r--r--academic/siril/siril.SlackBuild21
1 files changed, 21 insertions, 0 deletions
diff --git a/academic/siril/siril.SlackBuild b/academic/siril/siril.SlackBuild
index c98d9193a6..03073692f2 100644
--- a/academic/siril/siril.SlackBuild
+++ b/academic/siril/siril.SlackBuild
@@ -40,6 +40,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
set -e
rm -rf $PKG
@@ -48,8 +62,15 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
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 {} \;
sh ./autogen.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \