mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-27 23:35:26 +00:00
18 lines
409 B
Bash
Executable File
18 lines
409 B
Bash
Executable File
#!/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
|