mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
18 lines
409 B
Bash
18 lines
409 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
||
|
INSTALL_PREFIX="$1"
|
||
|
EXTRA_CMAKE_OPTS="$2"
|
||
|
|
||
|
cd "$SCRIPTPATH/.."
|
||
|
|
||
|
if [[ ! -d rz-silhouette ]]; then
|
||
|
git clone https://github.com/rizinorg/rz-silhouette.git --depth 1 rz-silhouette
|
||
|
fi
|
||
|
|
||
|
cd rz-silhouette
|
||
|
|
||
|
meson --buildtype=release --pkg-config-path="$INSTALL_PREFIX/lib/pkgconfig" --prefix="$INSTALL_PREFIX" build
|
||
|
ninja -C build install
|