mkdir -p $A/usr/bin $A/usr/lib $A/usr/share
cd ./$APP
-. ../contrib/functions.sh
+. $STATIC_FILES/functions.sh
########################################################################
# Get build products from $PREFIX
# Copy desktop and icon file to AppDir for AppRun to pick them up
########################################################################
-cp ../../contrib/pulseview.desktop ../../contrib/sigrok-logo-notext.png .
+cp $STATIC_FILES/pulseview.desktop .
+cp $STATIC_FILES/sigrok-logo-notext.png .
########################################################################
# Copy in the dependencies that cannot be assumed to be available
# Patch away absolute paths; it would be nice if they were relative
########################################################################
-patch_usr
+find usr/ -type f -executable -exec sed -i -e "s|/usr|././|g" {} \;
########################################################################
# AppDir complete