diff options
Diffstat (limited to 'libraries/libsunpinyin')
-rw-r--r-- | libraries/libsunpinyin/libsunpinyin.SlackBuild | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libraries/libsunpinyin/libsunpinyin.SlackBuild b/libraries/libsunpinyin/libsunpinyin.SlackBuild index f8ac6881d9..024c7de01b 100644 --- a/libraries/libsunpinyin/libsunpinyin.SlackBuild +++ b/libraries/libsunpinyin/libsunpinyin.SlackBuild @@ -13,7 +13,7 @@ TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -24,8 +24,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -63,7 +63,7 @@ sed -i \ -e "s|arpa\.tar|arpa-${LMVER}.tar|" \ -e "s|utf8\.tar|utf8-${DIVER}.tar|" \ raw/Makefile -cp -a $CWD/{lm_sc.t3g.arpa-${LMVER},dict.utf8-${DIVER}}.tar.bz2 raw/ || true +cp $CWD/{lm_sc.t3g.arpa-${LMVER},dict.utf8-${DIVER}}.tar.bz2 raw/ || true export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" @@ -74,8 +74,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS ChangeLog COPYING LGPL.LICENSE NEWS OPENSOLARIS.LICENSE README TODO \ +cp -a AUTHORS ChangeLog COPYING LGPL.LICENSE NEWS OPENSOLARIS.LICENSE README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |