libraries/slv2: Fix shared lib permissions.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-07-01 16:09:29 -04:00 committed by Willy Sudiarto Raharjo
parent e68e52bbcc
commit aa5bdfe8b4
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20230701 bkw: Modified by SlackBuilds.org, BUILD=4:
# - +x permission for shared lib.
# - remove empty /usr/man/man3 dir.
# 20220424 bkw: Modified by SlackBuilds.org, BUILD=3:
# - strip binaries and libraries.
# - don't run ldconfig while bulding.
@ -32,7 +36,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slv2
VERSION=${VERSION:-0.6.6}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -99,12 +103,14 @@ CXXFLAGS="$SLKCFLAGS" \
./waf build
./waf install --destdir=$PKG
strip $PKG/usr/bin/* $PKG/usr/lib*/*.so.*.*.*
chmod 755 $PKG/usr/lib*/*.so.*.*.*
if [ "$LIBDIRSUFFIX" != "" ]; then
sed -i "s,/lib,/lib$LIBDIRSUFFIX," \
$PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc
fi
rmdir $PKG/usr/man/man3 || true
gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION