From 59e559b6a841d70e7815bf52fc0fbbd3a1ace163 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sun, 9 Jul 2017 18:35:12 +0100 Subject: academic/siril: Fix doc ownership, use our cflags. Signed-off-by: David Spencer --- academic/siril/siril.SlackBuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/academic/siril/siril.SlackBuild b/academic/siril/siril.SlackBuild index c98d9193a6c9c..03073692f2558 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 \ -- cgit v1.2.3