Zrythm installer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
493 B

#!@BASH@
# prefix to install in
prefix="$1"
# sudo or empty
sudo_or_empty="$2"
# full path to carla source zip
carla_source_zip="$3"
# carla git version
carla_git_ver="$4"
export CC=@CC@
export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
if pkg-config --atleast-version=2.1 carla-native-plugin ; then
echo "latest carla installed" ;
fi
tempdir=`mktemp -d`
unzip -o "$carla_source_zip" -d "$tempdir"
cd "$tempdir/Carla-$carla_git_ver"
make -j4 && $sudo_or_empty make install PREFIX="$prefix"