pumpkin/configure
2020-06-16 12:27:53 +02:00

30 lines
392 B
Bash
Executable File

#!/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."