diff options
-rw-r--r-- | network/imageshack-uploader/imageshack-uploader.SlackBuild | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/network/imageshack-uploader/imageshack-uploader.SlackBuild b/network/imageshack-uploader/imageshack-uploader.SlackBuild index 6a42a7ab538f0..186467bd4c7d2 100644 --- a/network/imageshack-uploader/imageshack-uploader.SlackBuild +++ b/network/imageshack-uploader/imageshack-uploader.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=imageshack-uploader VERSION=${VERSION:-2.2.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=i486 @@ -38,21 +38,18 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -cd $PRGNAM-$VERSION -ar x $CWD/$PRGNAM-$VERSION.deb +cd $PKG +ar p $CWD/$PRGNAM-$VERSION.deb data.tar.gz | tar xvz +cd $PKG chown -R root:root . +find . -type d -exec chmod 0755 {} \; 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -tar xvf data.tar.gz -C $PKG + \( -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 {} \; -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 # This binary was built against an old version of ffmpeg |