lact/main.sh

28 lines
607 B
Bash
Raw Normal View History

2024-11-09 15:31:01 +01:00
#! /bin/bash
set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-11-15 17:56:45 +01:00
VERSION="0.6.0"
2024-11-09 15:31:01 +01:00
2024-11-15 17:56:45 +01:00
git clone --recurse-submodules https://github.com/ilya-zlobintsev/LACT.git -b v0.6.0
2024-11-09 15:33:05 +01:00
cp -rvf ./debian ./LACT/
cd ./LACT/
2024-11-09 15:31:01 +01:00
# Get build deps
2024-11-09 15:42:55 +01:00
LOGNAME=root dh_make --createorig -y -l -p lact_"$VERSION" || echo "dh-make: Ignoring Last Error"
2024-11-09 15:31:01 +01:00
apt-get build-dep ./ -y
apt-get install curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
# Build package
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/