diff options
Diffstat (limited to 'system/shake/shake.SlackBuild')
-rw-r--r-- | system/shake/shake.SlackBuild | 29 |
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 \ |