development/mold: Updated for version 1.6.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
xaizek 2022-10-22 20:58:42 +07:00 committed by Willy Sudiarto Raharjo
parent 2e6001eb47
commit 47efa1ae0d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 17 additions and 8 deletions

View file

@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mold
VERSION=${VERSION:-1.5.1}
VERSION=${VERSION:-1.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -79,9 +79,19 @@ 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 {} \;
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG \
PREFIX=/usr LIBDIR=/usr/lib64 MANDIR=/usr/man DOCDIR=/usr/doc
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
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
@ -89,7 +99,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README.md \
$PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="mold"
VERSION="1.5.1"
VERSION="1.6.0"
HOMEPAGE="https://github.com/rui314/mold"
DOWNLOAD="https://github.com/rui314/mold/archive/v1.5.1/mold-1.5.1.tar.gz"
MD5SUM="a81cc2431ab795bc2afe7401d9c0483e"
DOWNLOAD="https://github.com/rui314/mold/archive/v1.6.0/mold-1.6.0.tar.gz"
MD5SUM="f6eb0adbc0ebd5dc75aed698bddd1a0e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""