File subsurface.Recipe of Package Subsurface

#!/bin/bash

# from build-rpm2appimage package
. /usr/lib/appimagetool/functions.sh

LIBDIR="usr/lib/"
[ -e usr/lib64 ] && LIBDIR="usr/lib64/"

export LD_LIBRARY_PATH=./$LIBDIR:../../5.5/gc*/lib/:$LD_LIBRARY_PATH

ldd usr/bin/subsurface | grep "=>" | awk '{print $3}'  |  xargs -I '{}' cp -v '{}' $LIBDIR || true

mkdir -p $LIBDIR/qt5/plugins/platforms/
cp /$LIBDIR/qt5/plugins/platforms/libqxcb.so $LIBDIR/qt5/plugins/platforms/
ldd $LIBDIR/qt5/plugins/platforms/libqxcb.so | grep "=>" | awk '{print $3}'  |  xargs -I '{}' cp -v '{}' $LIBDIR || true

# Add desktop integration
get_desktopintegration subsurface

# Remove blacklisted files
delete_blacklisted

pwd
openSUSE Build Service is sponsored by