diff options
author | B. Watson <urchlay@slackware.uk> | 2023-08-01 03:50:57 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-08-12 08:29:50 +0700 |
commit | f4d5e0c6d65683686be32e05817356fa19e332fa (patch) | |
tree | bcd6fd71de82789d118f90c508b7f1024e858f9b /system/unrar | |
parent | 4b9ba1d06e85db0883b7c80f410886329acf4be5 (diff) |
system/unrar: Add -j1 to make commands.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/unrar')
-rw-r--r-- | system/unrar/unrar.SlackBuild | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild index 1df76beb2d71..9c912b8780ea 100644 --- a/system/unrar/unrar.SlackBuild +++ b/system/unrar/unrar.SlackBuild @@ -22,6 +22,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230801 bkw: Modified by SlackBuilds.org: add -j1 to make commands, +# since parallel builds fail. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=unrar @@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -75,18 +75,18 @@ cd $PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + patch -p1 < $CWD/unrar-6.1.7-soname.patch cp -a $TMP/$PRGNAM/ $TMP/libunrar -make -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS" -make CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib +make -j1 -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS" +make -j1 CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib -install -D -m 755 unrar $PKG/usr/bin/unrar -install -D -m 755 $TMP/libunrar/libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.$VERSION +install -s -D -m 755 unrar $PKG/usr/bin/unrar +install -s -D -m 755 $TMP/libunrar/libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.$VERSION install -D -m 644 dll.hpp "$PKG/usr/include/unrar/dll.hpp" ( @@ -95,9 +95,6 @@ install -D -m 644 dll.hpp "$PKG/usr/include/unrar/dll.hpp" ln -s libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.5 ) -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 - mkdir -p $PKG/usr/man/man1 gzip -9c $CWD/unrar.1 > $PKG/usr/man/man1/unrar.1.gz |