diff options
Diffstat (limited to 'graphics/mangohud/mangohud.SlackBuild')
-rw-r--r-- | graphics/mangohud/mangohud.SlackBuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/graphics/mangohud/mangohud.SlackBuild b/graphics/mangohud/mangohud.SlackBuild index f087509562c7..72796e07bb62 100644 --- a/graphics/mangohud/mangohud.SlackBuild +++ b/graphics/mangohud/mangohud.SlackBuild @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mangohud SRCNAM=MangoHud -VERSION=${VERSION:-0.6.7.1} -SRCVER=${SRCVER:-0.6.7-1} +VERSION=${VERSION:-0.6.8} +SRCVER=${SRCVER:-0.6.8} IMGUIVER=${IMGUIVER:-1.81} SPDLOGVER=${SPDLOGVER:-1.8.5} BUILD=${BUILD:-1} @@ -82,18 +82,19 @@ tar xvf $CWD/imgui-$IMGUIVER.tar.gz unzip $CWD/imgui_$IMGUIVER-1_patch.zip tar xvf $CWD/spdlog-$SPDLOGVER.tar.gz unzip $CWD/spdlog_$SPDLOGVER-1_patch.zip -if [ "$MANGOAPP" = "true" ]; then - unzip $CWD/include.zip -d nlohmann_json-3.10.5 -fi cd .. chown -R root:root . +#Slackware 15.0 ships meson 59.4, and mangohud requires 60.0, so we patch it. +patch -p0 <$CWD/meson594.patch + find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + mkdir build cd build CFLAGS="$SLKCFLAGS" \ @@ -155,6 +156,8 @@ rm -rf $PKG/usr/share/doc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |