diff --git a/development/mold/mold.SlackBuild b/development/mold/mold.SlackBuild index 38ce9a750c..a3e7f04f5a 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 2fccb2bace..58562545db 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=""