pumpkin/configure

30 lines
392 B
Plaintext
Raw Permalink Normal View History

2020-06-16 12:27:53 +02:00
#!/bin/bash
function check_package()
{
printf "\tChecking for ${1}... "
${1} --version &> /dev/null
if [ ! $? == 0 ]
then
echo "Failed!"
echo ""
echo "Please install ${1}!"
exit 1
fi
echo "Found."
}
echo "Checking for dependencies:"
check_package python3
check_package pip3
check_package gcc
check_package make
check_package aplay
echo ""
echo "Ready to install."