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.

26 lines
438 B

#!@BASH@
# tarball
tarball="$1"
# prefix to install at, eg '/usr'
prefix="$2"
# lv2 dir suffix after the prefix, eg 'lib/lv2'
lv2_dir="$3"
meson_bin="@MESON_BIN@"
zplugins_ver="@ZPLUGINS_VER@"
echo `pwd`
rm -rf "$prefix/$lv2_dir"
tempdir=`mktemp -d`
tar xf $tarball -C $tempdir
cd $tempdir/zplugins-$zplugins_ver
$meson_bin build --buildtype=debugoptimized \
--prefix=$prefix
ninja -C build
ninja -C build install
rm -rf $tempdir