diff options
Diffstat (limited to 'accessibility/espeakup/espeakup.SlackBuild')
-rw-r--r-- | accessibility/espeakup/espeakup.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/accessibility/espeakup/espeakup.SlackBuild b/accessibility/espeakup/espeakup.SlackBuild index b0cb5181b2..98074a94c9 100644 --- a/accessibility/espeakup/espeakup.SlackBuild +++ b/accessibility/espeakup/espeakup.SlackBuild @@ -14,15 +14,12 @@ PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -32,8 +29,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" @@ -65,6 +62,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# 20211209 bkw: Slackware now ships espeak-ng, use it. +sed -i 's,-lespeak,&-ng,' Makefile + make MANDIR=/usr/man/man8 CFLAGS="$SLKCFLAGS" make install MANDIR=/usr/man/man8 DESTDIR=$PKG |