diff options
Diffstat (limited to 'system/unrar/unrar.SlackBuild')
-rw-r--r-- | system/unrar/unrar.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild index 7391a49e5d..80ecca65c9 100644 --- a/system/unrar/unrar.SlackBuild +++ b/system/unrar/unrar.SlackBuild @@ -69,10 +69,21 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/unrar-5.0.13-soname.patch +cp -a $TMP/$PRGNAM/ $TMP/libunrar + +make -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS" make CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib install -D -m 755 unrar $PKG/usr/bin/unrar -install -D -m 644 libunrar.so $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so +install -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" + +( + cd /usr/lib${LIBDIRSUFFIX} + ln -s libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so + 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 |