piston/packages/lolcode/0.11.2/build.sh
Dan Vargas 3dfade7c91
pkg(lolcode-0.11.2): update build script to use correct lolcode version (#237)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
2021-04-28 14:15:34 +12:00

18 lines
398 B
Bash
Executable file

#!/usr/bin/env bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# lolcode release
curl -L "https://github.com/justinmeza/lci/archive/refs/tags/v0.11.2.tar.gz" -o lolcode.tar.gz
tar xzf lolcode.tar.gz --strip-components=1
# Building and installing lolcode
cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" .
make -j$(nproc)
make install -j$(nproc)
# Cleaning up
cd ../ && rm -rf build