Update main.sh

This commit is contained in:
ferreo 2024-11-08 15:35:03 +01:00
parent 9b6ed8c4b8
commit e99165b1ef

13
main.sh
View File

@ -6,16 +6,17 @@ set -e
echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="1.0"
VERSION="0.99.1"
# Clone Upstream
mkdir -p ./src-pkg-name
cp -rvf ./debian ./src-pkg-name/
cd ./src-pkg-name/
git clone --recurse-submodules https://github.com/nushell/nushell.git -b "$VERSION"
cp -rvf ./debian ./nushell/
cd ./nushell/
# Get build deps
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
LOGNAME=root dh_make --createorig -y -l -p nushell_"$VERSION" || echo "dh-make: Ignoring Last Error"
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