summaryrefslogtreecommitdiffstats
path: root/system/shake/shake.SlackBuild
diff options
context:
space:
mode:
author LukenShiro <lukenshiro@ngi.it>2013-11-15 17:26:30 -0600
committer Robby Workman <rworkman@slackbuilds.org>2013-11-15 20:27:39 -0600
commit811878d4dfc2ee37f3d2b5c8f0c9833608c16ac9 (patch)
tree3b047032a3abff2c8e3cda028eb426e25bed91e4 /system/shake/shake.SlackBuild
parent767e5d72f919e2b1c29ba01d1f5bdeabe0589141 (diff)
downloadslackbuilds-811878d4dfc2ee37f3d2b5c8f0c9833608c16ac9.tar.gz
slackbuilds-811878d4dfc2ee37f3d2b5c8f0c9833608c16ac9.tar.xz
system/shake: Patched to fix build
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/shake/shake.SlackBuild')
-rw-r--r--system/shake/shake.SlackBuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/system/shake/shake.SlackBuild b/system/shake/shake.SlackBuild
index 2d6802cacd..12d0d10815 100644
--- a/system/shake/shake.SlackBuild
+++ b/system/shake/shake.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=shake
-VERSION=${VERSION:-0.99}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.999}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,15 +59,18 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-fs-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-fs-$VERSION
chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -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 {} \;
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# patch for "error: unknown type name 'dev_t'"
+patch -p0 < $CWD/shake-dev_t-include.patch
cd build
CFLAGS="$SLKCFLAGS" \
@@ -80,7 +83,7 @@ make VERBOSE=1
make install DESTDIR=$PKG
cd -
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
#Move manpages manually
@@ -88,10 +91,8 @@ mkdir $PKG/usr/man
mv $PKG/usr/share/man/* $PKG/usr/man/
rm -R $PKG/usr/share
-( 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 . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \