From 2febe7efdcdb9712ee09bbb1acb3b5cb48944eb7 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 6 May 2017 21:21:50 +0700 Subject: [PATCH] cinnamon-themes: Use noarch. Signed-off-by: Willy Sudiarto Raharjo --- cinnamon-themes/cinnamon-themes.SlackBuild | 22 +---------------- .../cinnamon-translations.SlackBuild | 24 ++----------------- 2 files changed, 3 insertions(+), 43 deletions(-) diff --git a/cinnamon-themes/cinnamon-themes.SlackBuild b/cinnamon-themes/cinnamon-themes.SlackBuild index 3f95784..0b9a1aa 100644 --- a/cinnamon-themes/cinnamon-themes.SlackBuild +++ b/cinnamon-themes/cinnamon-themes.SlackBuild @@ -28,33 +28,13 @@ COMMITVER=${COMMITVER:-87494fc0c05aa6865e28f8a510ef86da493f1549} BUILD=${BUILD:-1} TAG=${TAG:-_csb} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/csb} 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 diff --git a/cinnamon-translations/cinnamon-translations.SlackBuild b/cinnamon-translations/cinnamon-translations.SlackBuild index 7be6346..b83501a 100644 --- a/cinnamon-translations/cinnamon-translations.SlackBuild +++ b/cinnamon-translations/cinnamon-translations.SlackBuild @@ -23,17 +23,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cinnamon-translations -VERSION=${VERSION:-3.4.0} +VERSION=${VERSION:-3.4.1} BUILD=${BUILD:-1} TAG=${TAG:-_csb} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch wget -c https://github.com/linuxmint/cinnamon-translations/archive/$VERSION.tar.gz @@ -42,20 +36,6 @@ TMP=${TMP:-/tmp/csb} 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