Skip to content

Instantly share code, notes, and snippets.

@MrCyjaneK
Last active September 20, 2021 15:57
Show Gist options
  • Save MrCyjaneK/33a4efa537fa8b1d65604eef1c33f49d to your computer and use it in GitHub Desktop.
Save MrCyjaneK/33a4efa537fa8b1d65604eef1c33f49d to your computer and use it in GitHub Desktop.
monero-gui-checkinstall
#!/bin/bash
cd monero-gui/build/release/bin/
VERSION=$(./monerod --version | tr '()' "\n" | head -2 | tail -1 | tr -d 'v')
for i in monero-blockchain-ancestry monero-blockchain-depth monero-blockchain-export monero-blockchain-import monero-blockchain-mark-spent-outputs monero-blockchain-prune monero-blockchain-prune-known-spent-data monero-blockchain-stats monero-blockchain-usage monero-gen-ssl-cert monero-gen-trusted-multisig monero-wallet-cli monero-wallet-gui monero-wallet-rpc monerod;
do
echo -n -e ".PHONY: install\n" > Makefile
echo -n -e "install:\n" >> Makefile
echo -n -e "\tmkdir -p /bin || true\n" >> Makefile
echo -n -e "\tcp $i /bin/$i\n" >> Makefile
if [[ "$i" == "monero-wallet-gui" ]];
then
checkinstall --default --pkgname="$i" --pkgversion=$VERSION --maintainer="cyjan@mrcyjanek.net" --depends="libunbound8,libhidapi-libusb0,libboost-program-options1.74.0,libboost-chrono1.74.0,libboost-filesystem1.74.0,libboost-thread1.74.0,libboost-regex1.74.0,libboost-serialization1.74.0,qml-module-qtquick-dialogs,qml-module-qtgraphicaleffects,qml-module-qtquick-controls,qml-module-qtquick-controls2,qml-module-qtquick-xmllistmodel,qml-module-qt-labs-platform"
else;
checkinstall --default --pkgname="$i" --pkgversion=$VERSION --maintainer="cyjan@mrcyjanek.net"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment