summaryrefslogtreecommitdiff
path: root/desktop/fvwm95/fvwm95.SlackBuild
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.tk>2014-04-17 08:23:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-23 07:51:37 +0700
commit105edff4cec0227c1a022cc20d1fa16435f6544d (patch)
treeac456fb8d515d58388dbde03119a4631d95d977c /desktop/fvwm95/fvwm95.SlackBuild
parent4649cbaa4158f4d213d444a983290c2a761a2587 (diff)
downloadslackbuilds-105edff4cec0227c1a022cc20d1fa16435f6544d.tar.gz
desktop/fvwm95: Fix build on x86_64.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/fvwm95/fvwm95.SlackBuild')
-rw-r--r--desktop/fvwm95/fvwm95.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/desktop/fvwm95/fvwm95.SlackBuild b/desktop/fvwm95/fvwm95.SlackBuild
index 78ce3ee144..682021a832 100644
--- a/desktop/fvwm95/fvwm95.SlackBuild
+++ b/desktop/fvwm95/fvwm95.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=fvwm95
VERSION=${VERSION:-2.0.43f}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,13 +72,6 @@ find -L . \
# Apply patch to make compilation possible
patch -p1 < $CWD/fvwm95.patch
-# Fix path on x86_64
-subdirs="libs fvwm modules utils sample.fvwmrc xpmroot pixmaps mini-icons docs"
-for S in ${subdirs}; do
- sed -i "s|/lib/X11|/lib${LIBDIRSUFFIX}/X11|" $S/Makefile.in
-done
-sed -i "s|lib_dir=@exec_prefix@/lib|lib_dir=@exec_prefix@/lib${LIBDIRSUFFIX}|" libs/Makefile.in
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -100,6 +93,11 @@ install -m 755 $CWD/xinitrc.fvwm95 $PKG/etc/X11/xinit
mv $PKG/usr/bin/xpmroot $PKG/usr/bin/xpmroot95
mv $PKG/usr/man/man1/xpmroot.1 $PKG/usr/man/man1/xpmroot95.1
+# rename manpages
+for m in $PKG/usr/man/man1/Fvwm* ; do
+ mv $m `echo $m | sed -r 's/Fvwm/Fvwm95/'`
+done
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true