summaryrefslogtreecommitdiff
path: root/libraries/enchant/enchant.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/enchant/enchant.SlackBuild')
-rw-r--r--libraries/enchant/enchant.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/libraries/enchant/enchant.SlackBuild b/libraries/enchant/enchant.SlackBuild
index faf619afef..41cdaa76d8 100644
--- a/libraries/enchant/enchant.SlackBuild
+++ b/libraries/enchant/enchant.SlackBuild
@@ -4,10 +4,11 @@
# Written by Alex Elliott <alex@alex-elliott.co.uk>
PRGNAM=enchant
-VERSION=1.3.0
+VERSION=1.4.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -15,8 +16,10 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -28,7 +31,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -36,8 +43,11 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
--with-aspell-prefix=/usr \
- --enable-static=no
+ --enable-static=no \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG