piso/install.sh
#!/usr/bin/env bash
echo "Install script! from ($MESON_BUILD_ROOT)"
PREFIX="/opt/piso"
echo "[Desktop Entry]
Name=Piso
Exec=$PREFIX/piso
Icon=$PREFIX/icon.png
Type=Application
Categories=Utility;Network" >$MESON_BUILD_ROOT/piso.desktop
mkdir $PREFIX
cp $MESON_BUILD_ROOT/piso $PREFIX
cp $MESON_SOURCE_ROOT/icon.png $PREFIX
cp $MESON_SOURCE_ROOT/uninstall.sh $PREFIX
chmod +x $PREFIX/uninstall.sh
cp $MESON_BUILD_ROOT/piso.desktop /usr/share/applications/
strip $PREFIX/piso