#!/bin/sh

. config/options $1

strip_lto # libssh fails to build with LTO optimization

cd $PKG_BUILD
mkdir -p build && cd build

cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
      -DCMAKE_INSTALL_PREFIX=/usr \
      ..

make

$MAKEINSTALL
