diff options
author | Steven Voges <svoges.sbo@gmail.com> | 2022-05-13 08:07:00 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-14 19:28:02 +0700 |
commit | fa1692f1a9cb3b7b62dfd91c4820c31265458777 (patch) | |
tree | bbcdd9b781805b2f6ede0d1c4bec8f0eec6335f8 /graphics/mangohud/mangohud.SlackBuild | |
parent | 47bcd681c552d16bd34ed7b0bc01512bc1ad633c (diff) |
graphics/mangohud: Updated for version 0.6.7.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/mangohud/mangohud.SlackBuild')
-rw-r--r-- | graphics/mangohud/mangohud.SlackBuild | 59 |
1 files changed, 47 insertions, 12 deletions
diff --git a/graphics/mangohud/mangohud.SlackBuild b/graphics/mangohud/mangohud.SlackBuild index 8b295e869320a..148bdbdfaa12e 100644 --- a/graphics/mangohud/mangohud.SlackBuild +++ b/graphics/mangohud/mangohud.SlackBuild @@ -25,13 +25,17 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mangohud -VERSION=${VERSION:-0.6.6_1} -RLSVRS=${RLSVRS:-0.6.6-1} +SRCNAM=MangoHud +VERSION=${VERSION:-0.6.7} +IMGUIVER=${IMGUIVER:-1.81} +SPDLOGVER=${SPDLOGVER:-1.8.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +COMPAT32=${COMPAT32:-no} XNVCTRL=${XNVCTRL:-disabled} SYSVULKAN=${SYSVULKAN:-enabled} +MANGOAPP=${MANGOAPP:-true} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -73,14 +77,16 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf MangoHud-$VERSION -rm -rf MangoHud-$RLSVRS -tar xvf $CWD/MangoHud-$RLSVRS.tar.?z -cd MangoHud-$RLSVRS/subprojects -tar xvf $CWD/imgui-1.81.tar.gz -unzip $CWD/imgui_1.81-1_patch.zip -tar xvf $CWD/spdlog-1.8.5.tar.gz -unzip $CWD/spdlog_1.8.5-1_patch.zip +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z +cd $SRCNAM-$VERSION/subprojects +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 . @@ -104,11 +110,36 @@ cd build --prefix=/usr \ --sysconfdir=/etc \ -Duse_system_vulkan=$SYSVULKAN \ - -Dwith_xnvctrl=$XNVCTRL + -Dwith_xnvctrl=$XNVCTRL \ + -Dmangoapp=$MANGOAPP ninja DESTDIR=$PKG ninja install cd .. +if [ "$COMPAT32" = "yes" ]; then + mkdir build32 + cd build32 + CC="gcc -m32" \ + CXX="g++ -m32" \ + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + LDFLAGS="-L/usr/lib" \ + PKG_CONFIG_PATH="/usr/lib/pkgconfig" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Duse_system_vulkan=$SYSVULKAN \ + -Dmangoapp=$MANGOAPP + ninja + DESTDIR=$PKG ninja install + cd .. +fi + 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 @@ -116,9 +147,13 @@ 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md meson_options.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/doc/$PRGNAM/$SRCNAM.conf.example \ + $PKG/usr/doc/$PRGNAM-$VERSION/ +rm -rf $PKG/usr/share/doc + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |