aboutsummaryrefslogtreecommitdiff
path: root/network/sylpheed
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-07-01 23:07:43 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-03 11:36:10 +0700
commit83129c856ef7e327f2ea7e7b63c1393f83a29f67 (patch)
tree6f008cdc9c45db8df3a75c85194f9eae8db4e5c3 /network/sylpheed
parentec88b3fb4fd5f8342692999ed870fb5b5c5ccb2e (diff)
network/sylpheed: Patched for the newer enchant2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/sylpheed')
-rw-r--r--network/sylpheed/sylpheed.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/network/sylpheed/sylpheed.SlackBuild b/network/sylpheed/sylpheed.SlackBuild
index 68bfd2296d5c6..74cf56fe73e58 100644
--- a/network/sylpheed/sylpheed.SlackBuild
+++ b/network/sylpheed/sylpheed.SlackBuild
@@ -31,7 +31,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
@@ -47,8 +47,8 @@ DOCS="ABOUT-NLS AUTHORS COPYING COPYING.LIB
set -e
-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"
@@ -69,10 +69,14 @@ 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
+
+# Thanks to archlinux!
+sed -i 's|enchant/|enchant-2/|g' src/compose.c
+sed -i 's| enchant| enchant-2|g' configure
# fix for enchant >= 2.1.3
# https://www.archlinux.org/todo/enchant-221-rebuild/