summaryrefslogtreecommitdiff
path: root/system/imwheel/imwheel.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <info@davidwoodfall.co.uk>2010-06-14 00:47:33 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-14 03:18:18 -0500
commit532ad0067e65df7115100e5bbf0311eae90df058 (patch)
tree7ae8ec7275d856ff0177e02599e37229946738ca /system/imwheel/imwheel.SlackBuild
parentfcb9757f17ad65c0e3d25b4a446d844ed82acb73 (diff)
downloadslackbuilds-532ad0067e65df7115100e5bbf0311eae90df058.tar.gz
system/imwheel: Miscellaneous cleanups.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 \