summaryrefslogtreecommitdiff
path: root/system/imwheel/imwheel.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/imwheel/imwheel.SlackBuild')
-rw-r--r--system/imwheel/imwheel.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/system/imwheel/imwheel.SlackBuild b/system/imwheel/imwheel.SlackBuild
index a4d2b6dd9b..ba502bb42d 100644
--- a/system/imwheel/imwheel.SlackBuild
+++ b/system/imwheel/imwheel.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=imwheel
VERSION=${VERSION:-1.0.0pre12}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -65,8 +65,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-patch -p1 < $CWD/noautoconfigurator.patch
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -74,6 +72,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+if [ ${PATCH:-"yes"} != "yes" ]; then
+ true # do not apply patch
+else
+ patch -p1 < $CWD/noautoconfigurator.patch
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -90,10 +94,8 @@ make install DESTDIR=$PKG ETCDIR=$PKG/etc/X11/imwheel
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS NEWS BUGS README COPYING TODO ChangeLog EMACS FREEBSD INSTALL M-BA47 \