diff options
author | xaizek <xaizek@posteo.net> | 2022-10-22 20:58:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-22 20:58:42 +0700 |
commit | 47efa1ae0dfe3898bb84fbb77c54bd30b1a994b1 (patch) | |
tree | ae60c2c0628d3f1bac3b52358b6bb9a6b3f05f93 /development | |
parent | 2e6001eb47978878e0b5e04ffd93d825ff3a6c28 (diff) |
development/mold: Updated for version 1.6.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/mold/mold.SlackBuild | 19 | ||||
-rw-r--r-- | development/mold/mold.info | 6 |
2 files changed, 17 insertions, 8 deletions
diff --git a/development/mold/mold.SlackBuild b/development/mold/mold.SlackBuild index 38ce9a750cad3..a3e7f04f5a117 100644 --- a/development/mold/mold.SlackBuild +++ b/development/mold/mold.SlackBuild @@ -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 diff --git a/development/mold/mold.info b/development/mold/mold.info index 2fccb2bace43e..58562545db45f 100644 --- a/development/mold/mold.info +++ b/development/mold/mold.info @@ -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="" |