aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-03 10:05:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-03 10:05:42 +0700
commiteda8fe4df4ecd177613355e102730356c6c77bba (patch)
tree205d7e093dcbe6405a33c6c6ac77c519e3c3d425
parent2c18ec9f7616dcf402b0c0ae9db3ee01396149de (diff)
network/sylpheed: Fix build against new enchant.
Thanks to J_W in LQ. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/sylpheed/sylpheed.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/network/sylpheed/sylpheed.SlackBuild b/network/sylpheed/sylpheed.SlackBuild
index 812659644a677..68bfd2296d5c6 100644
--- a/network/sylpheed/sylpheed.SlackBuild
+++ b/network/sylpheed/sylpheed.SlackBuild
@@ -74,6 +74,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# fix for enchant >= 2.1.3
+# https://www.archlinux.org/todo/enchant-221-rebuild/
+# Thanks Arch
+ sed -i 's,enchant/,enchant-2/,g' src/compose.c
+ sed -i 's/ enchant/ enchant-2/g' configure
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -88,6 +94,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la
# Install desktop file and icon (we'll use the largest icon available by
# default - that way, it will scale down just fine for users who need a